SV-268553r1034599_rule
V-268553
SRG-OS-000205-GPOS-00083
APPL-15-004040
CAT II
10
Configure the macOS system with system log files set to mode 640 or less permissive with the following command:
/bin/chmod 640 $(/usr/bin/stat -f '%A:%N' $(/usr/bin/grep -v '^#' /etc/newsyslog.conf | /usr/bin/awk '{ print $1 }') 2> /dev/null | /usr/bin/awk '!/640/{print $1}' | awk -F":" '!/640/{print $2}')
Verify the macOS system is configured with system log files set to mode 640 or less permissive with the following command:
/usr/bin/stat -f '%A:%N' $(/usr/bin/grep -v '^#' /etc/newsyslog.conf | /usr/bin/awk '{ print $1 }') 2> /dev/null | /usr/bin/awk '!/640/{print $1}' | /usr/bin/wc -l | /usr/bin/tr -d ' '
If the result is not "0", this is a finding.
V-268553
False
APPL-15-004040
Verify the macOS system is configured with system log files set to mode 640 or less permissive with the following command:
/usr/bin/stat -f '%A:%N' $(/usr/bin/grep -v '^#' /etc/newsyslog.conf | /usr/bin/awk '{ print $1 }') 2> /dev/null | /usr/bin/awk '!/640/{print $1}' | /usr/bin/wc -l | /usr/bin/tr -d ' '
If the result is not "0", this is a finding.
M
5661