SV-268140r1117267_rule
V-268140
SRG-OS-000138-GPOS-00069
ANIX-00-000970
CAT II
10
Configure all public directories to have the sticky bit set to prevent unauthorized and unintended information transferred via shared system resources.
Set the sticky bit on all public directories using the following command, replacing "[Public Directory]" with any directory path missing the sticky bit:
$ sudo chmod +t [Public Directory]
Verify NixOS is configured with the sticky bit on world-writable directories with the following command:
$ sudo find / -type d \( -perm -0002 -a ! -perm -1000 \) -print 2>/dev/null
If any of the returned directories are world-writable and do not have the sticky bit set, this is a finding.
V-268140
False
ANIX-00-000970
Verify NixOS is configured with the sticky bit on world-writable directories with the following command:
$ sudo find / -type d \( -perm -0002 -a ! -perm -1000 \) -print 2>/dev/null
If any of the returned directories are world-writable and do not have the sticky bit set, this is a finding.
M
5658