SV-269536r1050419_rule
V-269536
SRG-OS-000057-GPOS-00027
ALMA-09-055680
CAT II
10
Change the audit directory to be owned by the root user and group:
$ chown root:root /var/log/audit
Verify the audit log directory is owned by "root".
First determine where the audit logs are stored with the following command:
$ grep -w log_file /etc/audit/auditd.conf
log_file = /var/log/audit/audit.log
Then using the location of the audit log file, determine if the audit log is owned by the "root" user and group using the following command:
$ stat -c "%U:%G %n" /var/log/audit
root:root /var/log/audit
If the audit log directory is not owned by "root:root", this is a finding.
V-269536
False
ALMA-09-055680
Verify the audit log directory is owned by "root".
First determine where the audit logs are stored with the following command:
$ grep -w log_file /etc/audit/auditd.conf
log_file = /var/log/audit/audit.log
Then using the location of the audit log file, determine if the audit log is owned by the "root" user and group using the following command:
$ stat -c "%U:%G %n" /var/log/audit
root:root /var/log/audit
If the audit log directory is not owned by "root:root", this is a finding.
M
5664