SV-257942r1155718_rule
V-257942
SRG-OS-000480-GPOS-00227
RHEL-09-251045
CAT II
10
Configure RHEL 9 to enable hardening for the BPF JIT compiler.
Create the drop-in file if it does not already exist:
$ sudo vi /etc/sysctl.d/99-net_core-bpf_jit_harden.conf
Add the following line to the file:
net.core.bpf_jit_harden = 2
Reload settings from all system configuration files with the following command:
$ sudo sysctl --system
Verify RHEL 9 enables hardening for the BPF JIT compiler.
Check the status of the "net.core.bpf_jit_harden" parameter with the following command:
$ sudo sysctl net.core.bpf_jit_harden
net.core.bpf_jit_harden = 2
If "net.core.bpf_jit_harden" is not equal to "2" or is missing, this is a finding.
V-257942
False
RHEL-09-251045
Verify RHEL 9 enables hardening for the BPF JIT compiler.
Check the status of the "net.core.bpf_jit_harden" parameter with the following command:
$ sudo sysctl net.core.bpf_jit_harden
net.core.bpf_jit_harden = 2
If "net.core.bpf_jit_harden" is not equal to "2" or is missing, this is a finding.
M
5551