SV-269496r1050379_rule
V-269496
SRG-OS-000037-GPOS-00015
ALMA-09-050400
CAT II
10
Configure AlmaLinux OS 9 to generate audit records upon successful/unsuccessful attempts to use the "setsebool" command.
Add the following to the "/etc/audit/rules.d/audit.rules" file:
-a always,exit -F path=/usr/sbin/setsebool -F perm=x -F auid>=1000 -F auid!=unset -F key=privileged
Merge the rules into /etc/audit/audit.rules:
$ augenrules --load
Verify that AlmaLinux OS 9 is configured to audit the execution of the "setsebool" command with the following command:
$ auditctl -l | grep setsebool
-a always,exit -S all -F path=/usr/sbin/setsebool -F perm=x -F auid>=1000 -F auid!=unset -F key=privileged
If the command does not return an audit rule for "setsebool" or any of the lines returned are commented out, this is a finding.
V-269496
False
ALMA-09-050400
Verify that AlmaLinux OS 9 is configured to audit the execution of the "setsebool" command with the following command:
$ auditctl -l | grep setsebool
-a always,exit -S all -F path=/usr/sbin/setsebool -F perm=x -F auid>=1000 -F auid!=unset -F key=privileged
If the command does not return an audit rule for "setsebool" or any of the lines returned are commented out, this is a finding.
M
5664