SV-281251r1166705_rule
V-281251
SRG-OS-000445-GPOS-00199
RHEL-10-700420
CAT II
10
Configure RHEL 10 to enforce correct operation of security functions.
Edit the file "/etc/selinux/config" and add or modify the following line:
SELINUX=enforcing
A reboot is required for the changes to take effect.
Verify RHEL 10 enforces correct operation of security functions through the use of SELinux with the following command:
$ getenforce
Enforcing
If SELINUX is not set to "Enforcing", this is a finding.
Verify SELinux is configured to be enforcing at boot.
$ sudo grep "SELINUX=" /etc/selinux/config | grep -v '#'
SELINUX=enforcing
If an uncommented SELinux line is missing or not set to "enforcing", this is a finding.
V-281251
False
RHEL-10-700420
Verify RHEL 10 enforces correct operation of security functions through the use of SELinux with the following command:
$ getenforce
Enforcing
If SELINUX is not set to "Enforcing", this is a finding.
Verify SELinux is configured to be enforcing at boot.
$ sudo grep "SELINUX=" /etc/selinux/config | grep -v '#'
SELINUX=enforcing
If an uncommented SELinux line is missing or not set to "enforcing", this is a finding.
M
5733