SV-271746r1198253_rule
V-271746
SRG-OS-000132-GPOS-00067
OL09-00-002407
CAT II
10
Configure OL 9 to prevent kernel profiling by nonprivileged users.
Add or edit the following line in /etc/sysctl.d/99-sysctl.conf system configuration file:
kernel.perf_event_paranoid = 2
Load settings from all system configuration files with the following command:
$ sudo sysctl --system
Verify that OL 9 is configured to prevent kernel profiling by nonprivileged users with the following commands:
Check the status of the kernel.perf_event_paranoid kernel parameter.
$ sysctl kernel.perf_event_paranoid
kernel.perf_event_paranoid = 2
If "kernel.perf_event_paranoid" is not set to "2" or is missing, this is a finding.
V-271746
False
OL09-00-002407
Verify that OL 9 is configured to prevent kernel profiling by nonprivileged users with the following commands:
Check the status of the kernel.perf_event_paranoid kernel parameter.
$ sysctl kernel.perf_event_paranoid
kernel.perf_event_paranoid = 2
If "kernel.perf_event_paranoid" is not set to "2" or is missing, this is a finding.
M
5680