SV-258216r1155613_rule
V-258216
SRG-OS-000037-GPOS-00015
RHEL-09-654210
CAT II
10
Configure the audit system to generate an audit event for any successful/unsuccessful use of the "umount2" system call by adding or updating the following rules in a file in "/etc/audit/rules.d".
-a always,exit -F arch=b32 -S umount2 -F auid>=1000 -F auid!=unset -k privileged-umount
-a always,exit -F arch=b64 -S umount2 -F auid>=1000 -F auid!=unset -k privileged-umount
To load the rules to the kernel immediately, use the following command:
$ sudo augenrules --load
To determine if the system is configured to audit calls to the umount2 system call, run the following command:
$ sudo auditctl -l | grep umount2
-a always,exit -F arch=b64 -S umount2 -F auid>=1000 -F auid!=-1 -F key=privileged-umount
-a always,exit -F arch=b32 -S umount2 -F auid>=1000 -F auid!=-1 -F key=privileged-umount
If no line is returned, this is a finding.
V-258216
False
RHEL-09-654210
To determine if the system is configured to audit calls to the umount2 system call, run the following command:
$ sudo auditctl -l | grep umount2
-a always,exit -F arch=b64 -S umount2 -F auid>=1000 -F auid!=-1 -F key=privileged-umount
-a always,exit -F arch=b32 -S umount2 -F auid>=1000 -F auid!=-1 -F key=privileged-umount
If no line is returned, this is a finding.
M
5551