STIGQter STIGQter: STIG Summary: Oracle Linux 6 Security Technical Implementation Guide Version: 2 Release: 3 Benchmark Date: 23 Apr 2021:

The system package management tool must verify permissions on all files and directories associated with packages.

DISA Rule

SV-209063r603263_rule

Vulnerability Number

V-209063

Group Title

SRG-OS-000480

Rule Version

OL6-00-000518

Severity

CAT III

CCI(s)

Weight

10

Fix Recommendation

The RPM package management system can restore file access permissions of package files and directories. The following command will update permissions on files and directories with permissions different from what is expected by the RPM database:

# rpm --setperms [package]

Check Contents

The following command will list which files and directories on the system have permissions different from what is expected by the RPM database:

# rpm -Va | grep '^.M'

If there is any output, for each file or directory found, find the associated RPM package and compare the RPM-expected permissions with the actual permissions on the file or directory:

# rpm -qf [file or directory name]
# rpm -q --queryformat "[%{FILENAMES} %{FILEMODES:perms}\n]" [package] | grep [filename]
# ls -dlL [filename]

If the existing permissions are more permissive than those expected by RPM, this is a finding.

Vulnerability Number

V-209063

Documentable

False

Rule Version

OL6-00-000518

Severity Override Guidance

The following command will list which files and directories on the system have permissions different from what is expected by the RPM database:

# rpm -Va | grep '^.M'

If there is any output, for each file or directory found, find the associated RPM package and compare the RPM-expected permissions with the actual permissions on the file or directory:

# rpm -qf [file or directory name]
# rpm -q --queryformat "[%{FILENAMES} %{FILEMODES:perms}\n]" [package] | grep [filename]
# ls -dlL [filename]

If the existing permissions are more permissive than those expected by RPM, this is a finding.

Check Content Reference

M

Target Key

2928

Comments