TMAegis베타
bind 관련 규칙 더 보기

BIND DNS

TMA-BIND-10.1

Ensure SELinux Is Enabled in Enforcing Mode

낮음레벨 2자동bind

설명

SELinux (Security-Enhanced Linux) is a Linux kernel security module that provides mandatory access control security policies with type enforcement that are checked after the traditional discretionary access controls. It was created by the US National Security Agency and can enforce rules on files and processes in a Linux system, and restrict actions, based on defined policies. The audit runs sestatus and requires both the current mode and the mode from the config file to be enforcing.

점검 방법

감사 방식: 셸 명령

shell
out=$(sestatus 2>/dev/null) || exit 1
c=$(printf '%s\n' "$out" | awk -F: '/^Current mode/{gsub(/ /,"",$2); print $2}')
f=$(printf '%s\n' "$out" | awk -F: '/^Mode from config file/{gsub(/ /,"",$2); print $2}')
[ "$c" = enforcing ] && [ "$f" = enforcing ] && echo compliant || echo "SELinux current=${c:-?} config=${f:-?}"
예상 출력
compliant

조치 방법

조치 방식: 가이드 또는 인프라 패치

Perform the following to implement the recommended state: If SELinux is not enabled in the configuration file, edit the file /etc/selinux/config and set the value of SELINUX as enforcing and reboot the system for the new configuration to be effective. SELINUX=enforcing If the current mode is not enforcing, and an immediate reboot is not possible, the current mode can be set to enforcing with the setenable command shown below. # setenforce 1

속성

운영 체제
모두
태그
binddnsselinux
참고 자료
CIS ISC BIND DNS Server 9.11 Benchmark v1.0.0 - 10.1 Ensure SELinux Is Enabled in Enforcing Mode

이 호스트 점검하기

감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.

shell
tmaegis scan --target bind --level 2