AlmaLinux OS 9 must enable the SELinux targeted policy.

Severity
Group ID
Group Title
Version
Rule ID
Date
STIG Version
mediumV-269455SRG-OS-000445-GPOS-00199ALMA-09-045230SV-269455r1050338_rule2025-02-201
Description
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
Verify the SELinux on AlmaLinux OS 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
Configure AlmaLinux OS 9 to use the targeted 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.