Check: RHEL-09-431015
RHEL 9 STIG:
RHEL-09-431015
(in versions v1 r3 through v1 r1)
Title
RHEL 9 must enable the SELinux targeted policy. (Cat II impact)
Discussion
Setting the SELinux policy to "targeted" or a more specialized policy ensures the system will confine processes that are likely to be targeted for exploitation, such as network or system services. Note: During the development or debugging of SELinux modules, it is common to temporarily place nonproduction systems in "permissive" mode. In such temporary cases, SELinux policies should be developed, and once work is completed, the system should be reconfigured to "targeted".
Check Content
Verify the SELINUX on RHEL 9 is using the targeted policy with the following command: $ sestatus | grep policy Loaded policy name: targeted If the loaded policy name is not "targeted", this is a finding.
Fix Text
Configure RHEL 9 to use the targetd SELINUX policy. Edit the file "/etc/selinux/config" and add or modify the following line: SELINUXTYPE=targeted A reboot is required for the changes to take effect.
Additional Identifiers
Rule ID: SV-258079r926224_rule
Vulnerability ID: V-258079
Group Title: SRG-OS-000445-GPOS-00199
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-002696 |
The information system verifies correct operation of organization-defined security functions. |
Controls
Number | Title |
---|---|
SI-6 |
Security Function Verification |