SV-261297r996368_rule
V-261297
SRG-OS-000259-GPOS-00100
SLEM-05-232060
CAT II
10
Configure the library directories to be protected from unauthorized access. Run the following command:
> sudo transactional-update shell
> sudo find /lib /lib64 /usr/lib /usr/lib64 ! -user root -type d -exec chown root '{}' \;
> exit
> sudo reboot
Verify the system-wide shared library directories contained in the directories "/lib", "/lib64", "/usr/lib" and "/usr/lib64" are owned by root with the following command:
> sudo find /lib /lib64 /usr/lib /usr/lib64 ! -user root -type d -exec stat -c "%n %U" '{}' \;
If any system wide library directory is returned, this is a finding.
V-261297
False
SLEM-05-232060
Verify the system-wide shared library directories contained in the directories "/lib", "/lib64", "/usr/lib" and "/usr/lib64" are owned by root with the following command:
> sudo find /lib /lib64 /usr/lib /usr/lib64 ! -user root -type d -exec stat -c "%n %U" '{}' \;
If any system wide library directory is returned, this is a finding.
M
5596