SV-99039r1_rule
V-88389
SRG-OS-000059-GPOS-00029
VROM-SL-000165
CAT II
10
Change the mode of the audit log file(s):
# chmod 0640 <audit log file>
Check that the SLES for vRealize audit logs with the following command:
# (audit_log_file=$(grep "^log_file" /etc/audit/auditd.conf|sed s/^[^\/]*//) && if [ -f "${audit_log_file}" ] ; then printf "Log(s) found in "${audit_log_file%/*}":\n"; ls -l ${audit_log_file%/*}; else printf "audit log file(s) not found\n"; fi)
If any audit log file has a mode more permissive than "0640", this is a finding.
V-88389
False
VROM-SL-000165
Check that the SLES for vRealize audit logs with the following command:
# (audit_log_file=$(grep "^log_file" /etc/audit/auditd.conf|sed s/^[^\/]*//) && if [ -f "${audit_log_file}" ] ; then printf "Log(s) found in "${audit_log_file%/*}":\n"; ls -l ${audit_log_file%/*}; else printf "audit log file(s) not found\n"; fi)
If any audit log file has a mode more permissive than "0640", this is a finding.
M
3461