SV-230268r627750_rule
V-230268
SRG-OS-000312-GPOS-00122
RHEL-08-010374
CAT II
10
Configure the operating system to enable DAC on hardlinks.
Add or edit the following line in a system configuration file in the "/etc/sysctl.d/" directory:
fs.protected_hardlinks = 1
Load settings from all system configuration files with the following command:
$ sudo sysctl --system
Verify the operating system is configured to enable DAC on hardlinks with the following commands:
Check the status of the fs.protected_hardlinks kernel parameter.
$ sudo sysctl fs.protected_hardlinks
fs.protected_hardlinks = 1
If "fs.protected_hardlinks" is not set to "1" or is missing, this is a finding.
Check that the configuration files are present to enable this kernel parameter.
$ sudo grep -r fs.protected_hardlinks /etc/sysctl.conf /etc/sysctl.d/*.conf
/etc/sysctl.d/99-sysctl.conf:fs.protected_hardlinks = 1
If "fs.protected_hardlinks" is not set to "1", is missing or commented out, this is a finding.
V-230268
False
RHEL-08-010374
Verify the operating system is configured to enable DAC on hardlinks with the following commands:
Check the status of the fs.protected_hardlinks kernel parameter.
$ sudo sysctl fs.protected_hardlinks
fs.protected_hardlinks = 1
If "fs.protected_hardlinks" is not set to "1" or is missing, this is a finding.
Check that the configuration files are present to enable this kernel parameter.
$ sudo grep -r fs.protected_hardlinks /etc/sysctl.conf /etc/sysctl.d/*.conf
/etc/sysctl.d/99-sysctl.conf:fs.protected_hardlinks = 1
If "fs.protected_hardlinks" is not set to "1", is missing or commented out, this is a finding.
M
2921