TMAegisBeta
Thêm quy tắc cho bind

BIND DNS

TMA-BIND-10.4

Ensure Only the Necessary SELinux Booleans are Enabled

ThấpCấp 2Tự độngbind

Mô tả

SELinux booleans allow or disallow specific behaviors. There are two boolean variables specific to the ISC BIND DNS server: ; named_tcp_bind_http_port - Allow named to tcp bind http port ; named_write_master_zones - Allow named to write master zones The named_tcp_bind_http_port would allow enabling the BIND statistics http channel which is not recommended. The audit runs getsebool named_tcp_bind_http_port and requires off (named_write_master_zones is not audited).

Cách kiểm tra

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

shell
v=$(getsebool named_tcp_bind_http_port 2>/dev/null) || exit 1
case "$v" in *'--> off') echo compliant ;; *) echo "$v" ;; esac
Đầu ra mong đợi
compliant

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

Perform the following to implement the recommended state: Disable the SELinux boolean using the setsebool command as shown below with the -P option to make the change persistent. # setsebool -P named_tcp_bind_http_port off

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
binddnsselinux
Tham chiếu
CIS ISC BIND DNS Server 9.11 Benchmark v1.0.0 - 10.4 Ensure Only the Necessary SELinux Booleans are Enabled

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 bind --level 2