TMAegisBeta
Thêm quy tắc cho apache

Apache HTTP Server

TMA-APACHE-11.3

Ensure the httpd_t Type is Not in Permissive Mode

ThấpCấp 2Tự độngapache

Mô tả

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.

Cách kiểm tra

Phương pháp kiểm tra: Lệnh shell

shell
out=$(semodule -l 2>/dev/null) || exit 1; printf '%s\n' "$out" | grep -c 'permissive_httpd_t' || true
Đầu ra mong đợi
0

Cách khắc phục

Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng

semanage permissive -d httpd_t

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
apacheselinux
Tham chiếu
CIS Apache HTTP Server 2.4 Benchmark v2.4.0 - 11.3 Ensure the httpd_t Type is Not in Permissive Mode

Kiểm tra máy này

Chạy lệnh này trên máy bạn được phép kiểm tra. Lần quét chỉ ở chế độ đọc.

shell
tmaegis scan --target apache --level 2