SV-230282r627750_rule
V-230282
SRG-OS-000445-GPOS-00199
RHEL-08-010450
CAT II
10
Configure the operating system to verify correct operation of all security functions.
Set the "SELinuxtype" to the "targeted" policy by modifying the "/etc/selinux/config" file to have the following line:
SELINUXTYPE=targeted
A reboot is required for the changes to take effect.
Ensure the operating system verifies correct operation of all security functions.
Check if "SELinux" is active and is enforcing the targeted policy with the following command:
$ sudo sestatus
SELinux status: enabled
SELinuxfs mount: /sys/fs/selinux
SELinux root directory: /etc/selinux
Loaded policy name: targeted
Current mode: enforcing
Mode from config file: enforcing
Policy MLS status: enabled
Policy deny_unknown status: allowed
Memory protection checking: actual (secure)
Max kernel policy version: 31
If the "Loaded policy name" is not set to "targeted", this is a finding.
Verify that the /etc/selinux/config file is configured to the "SELINUXTYPE" to "targeted":
$ sudo grep -i "selinuxtype" /etc/selinux/config | grep -v '^#'
SELINUXTYPE = targeted
If no results are returned or "SELINUXTYPE" is not set to "targeted", this is a finding.
V-230282
False
RHEL-08-010450
Ensure the operating system verifies correct operation of all security functions.
Check if "SELinux" is active and is enforcing the targeted policy with the following command:
$ sudo sestatus
SELinux status: enabled
SELinuxfs mount: /sys/fs/selinux
SELinux root directory: /etc/selinux
Loaded policy name: targeted
Current mode: enforcing
Mode from config file: enforcing
Policy MLS status: enabled
Policy deny_unknown status: allowed
Memory protection checking: actual (secure)
Max kernel policy version: 31
If the "Loaded policy name" is not set to "targeted", this is a finding.
Verify that the /etc/selinux/config file is configured to the "SELINUXTYPE" to "targeted":
$ sudo grep -i "selinuxtype" /etc/selinux/config | grep -v '^#'
SELINUXTYPE = targeted
If no results are returned or "SELINUXTYPE" is not set to "targeted", this is a finding.
M
2921