SV-100143r1_rule
V-89493
SRG-OS-000057-GPOS-00027
VRAU-SL-000150
CAT II
10
Change the ownership of the audit log file(s).
Procedure:
# chown root <audit log file>
# chown root /var/log/audit/audit.log
Verify that the system audit logs are owned by "root":
# (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 is not owned by "root", this is a finding.
V-89493
False
VRAU-SL-000150
Verify that the system audit logs are owned by "root":
# (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 is not owned by "root", this is a finding.
M
3459