SV-268456r1034308_rule
V-268456
SRG-OS-000057-GPOS-00027
APPL-15-001012
CAT II
10
Configure the macOS system with audit log files owned by root with the following command:
/usr/sbin/chown -R root /var/audit/*
Verify the macOS system is configured with audit log files owned by root with the following command:
/bin/ls -n $(/usr/bin/grep '^dir' /etc/security/audit_control | /usr/bin/awk -F: '{print $2}') | /usr/bin/awk '{s+=$3} END {print s}'
If the result is not "0", this is a finding.
V-268456
False
APPL-15-001012
Verify the macOS system is configured with audit log files owned by root with the following command:
/bin/ls -n $(/usr/bin/grep '^dir' /etc/security/audit_control | /usr/bin/awk -F: '{print $2}') | /usr/bin/awk '{s+=$3} END {print s}'
If the result is not "0", this is a finding.
M
5661