SV-281059r1165532_rule
V-281059
SRG-OS-000259-GPOS-00100
RHEL-10-400210
CAT II
10
Configure RHEL 10 so that the systemwide shared library directories (/lib, /lib64, /usr/lib, and /usr/lib64) are protected from unauthorized access.
Run the following command, replacing "[DIRECTORY]" with any library directory with a mode more permissive than "755".
$ sudo chmod 755 [DIRECTORY]
Verify RHEL 10 is configured so that the systemwide shared library directories have mode "755" or less permissive with the following command:
$ sudo find -L /lib /lib64 /usr/lib /usr/lib64 -perm /022 -type d -exec ls -l {} \;
If any systemwide shared library file is found to be group-writable or world-writable, this is a finding.
V-281059
False
RHEL-10-400210
Verify RHEL 10 is configured so that the systemwide shared library directories have mode "755" or less permissive with the following command:
$ sudo find -L /lib /lib64 /usr/lib /usr/lib64 -perm /022 -type d -exec ls -l {} \;
If any systemwide shared library file is found to be group-writable or world-writable, this is a finding.
M
5733