SV-268460r1034320_rule
V-268460
SRG-OS-000057-GPOS-00027
APPL-15-001016
CAT II
10
Configure the macOS system with audit log files set to mode 440 with the following command:
/bin/chmod 440 /var/audit/*
Verify the macOS system is configured with audit log files set to mode 440 or less with the following command:
/bin/ls -l $(/usr/bin/grep '^dir' /etc/security/audit_control | /usr/bin/awk -F: '{print $2}') | /usr/bin/awk '!/-r--r-----|current|total/{print $1}' | /usr/bin/wc -l | /usr/bin/tr -d ' '
If the result is not "0", this is a finding.
V-268460
False
APPL-15-001016
Verify the macOS system is configured with audit log files set to mode 440 or less with the following command:
/bin/ls -l $(/usr/bin/grep '^dir' /etc/security/audit_control | /usr/bin/awk -F: '{print $2}') | /usr/bin/awk '!/-r--r-----|current|total/{print $1}' | /usr/bin/wc -l | /usr/bin/tr -d ' '
If the result is not "0", this is a finding.
M
5661