Information
The macOS system must configure Apple System Log (ASL) files owned by root and group to wheel.
GROUP ID: V-268550
RULE ID: SV-268550r1034590
The Apple System Logs must be owned by root.
ASLs contain sensitive data about the system and users. Setting ASL files to be readable and writable only by system administrators mitigates the risk.
Satisfies: SRG-OS-000205-GPOS-00083, SRG-OS-000206-GPOS-00084
Solution
Configure the macOS system with ASL files owned by root and group to wheel with the following command:
/usr/sbin/chown root:wheel $(/usr/bin/stat -f '%Su:%Sg:%N' $(/usr/bin/grep -e '^>' /etc/asl.conf /etc/asl/* | /usr/bin/awk '{ print $2 }') 2> /dev/null | /usr/bin/awk '!/^root:wheel:/{print $1}' | /usr/bin/awk -F":" '!/^root:wheel:/{print $3}')