SV-281305r1167065_rule
V-281305
SRG-OS-000132-GPOS-00067
RHEL-10-701030
CAT II
10
Configure RHEL 10 to restrict access to the kernel message buffer.
Create a drop-in if it does not already exist:
$ sudo vi /etc/sysctl.d/99-dmesg_restrict.conf
Add the following to the file:
kernel.dmesg_restrict = 1
Reload settings from all system configuration files with the following command:
$ sudo sysctl --system
Verify RHEL 10 is configured to restrict access to the kernel message buffer.
Check the status of the "kernel.dmesg_restrict" kernel parameter with the following command:
$ sudo sysctl kernel.dmesg_restrict
kernel.dmesg_restrict = 1
If "kernel.dmesg_restrict" is not set to "1" or is missing, this is a finding.
V-281305
False
RHEL-10-701030
Verify RHEL 10 is configured to restrict access to the kernel message buffer.
Check the status of the "kernel.dmesg_restrict" kernel parameter with the following command:
$ sudo sysctl kernel.dmesg_restrict
kernel.dmesg_restrict = 1
If "kernel.dmesg_restrict" is not set to "1" or is missing, this is a finding.
M
5733