STIGQter STIGQter: STIG Summary: Red Hat Enterprise Linux 8 Security Technical Implementation Guide Version: 1 Release: 2 Benchmark Date: 23 Apr 2021:

RHEL 8 must enable kernel parameters to enforce discretionary access control on hardlinks.

DISA Rule

SV-230268r627750_rule

Vulnerability Number

V-230268

Group Title

SRG-OS-000312-GPOS-00122

Rule Version

RHEL-08-010374

Severity

CAT II

CCI(s)

Weight

10

Fix Recommendation

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

Check Contents

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.

Vulnerability Number

V-230268

Documentable

False

Rule Version

RHEL-08-010374

Severity Override Guidance

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.

Check Content Reference

M

Target Key

2921

Comments