SV-99285r1_rule
V-88635
SRG-OS-000256-GPOS-00097
VROM-SL-000880
CAT II
10
For each file that has permissions that are more permissive than those expected by the RPM database, alter the permission of the file with the following command:
# chmod <permission> <filename>
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 the RPM database, this is a finding.
V-88635
False
VROM-SL-000880
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 the RPM database, this is a finding.
M
3461