SV-209014r603263_rule
V-209014
SRG-OS-000256
OL6-00-000278
CAT II
10
The RPM package management system can restore file access permissions of the audit package files and directories. The following command will update audit files with permissions different from what is expected by the RPM database:
# rpm --setperms audit
The following command will list which audit files on the system have permissions different from what is expected by the RPM database:
# rpm -V audit | grep '^.M'
If there is any output, for each file or directory found, compare the RPM-expected permissions with the permissions on the file or directory:
# rpm -q --queryformat "[%{FILENAMES} %{FILEMODES:perms}\n]" audit | grep [filename]
# ls -lL [filename]
If the existing permissions are more permissive than those expected by RPM, this is a finding.
V-209014
False
OL6-00-000278
The following command will list which audit files on the system have permissions different from what is expected by the RPM database:
# rpm -V audit | grep '^.M'
If there is any output, for each file or directory found, compare the RPM-expected permissions with the permissions on the file or directory:
# rpm -q --queryformat "[%{FILENAMES} %{FILEMODES:perms}\n]" audit | grep [filename]
# ls -lL [filename]
If the existing permissions are more permissive than those expected by RPM, this is a finding.
M
2928