Apache HTTP Server
TMA-APACHE-11.3
Ensure the httpd_t Type is Not in Permissive Mode
낮음레벨 2자동apache
설명
In addition to setting the entire SELinux configuration in permissive mode, it is possible to set individual process types (domains) such as httpd_t into a permissive mode as well. The permissive mode will not prevent any access or actions, instead, any actions that would have been denied are simply logged. semodule -l must not list permissive_httpd_t (httpd_t in permissive mode); expects 0. Not applicable without /etc/selinux/config.
점검 방법
감사 방식: 셸 명령
shell
out=$(semodule -l 2>/dev/null) || exit 1; printf '%s\n' "$out" | grep -c 'permissive_httpd_t' || true- 예상 출력
0
조치 방법
조치 방식: 가이드 또는 인프라 패치
semanage permissive -d httpd_t
속성
- 운영 체제
- 모두
- 태그
- apacheselinux
- 참고 자료
- CIS Apache HTTP Server 2.4 Benchmark v2.4.0 - 11.3 Ensure the httpd_t Type is Not in Permissive Mode
이 호스트 점검하기
감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.
shell
tmaegis scan --target apache --level 2