Information
RHEL 10 must enable hardening for the Berkeley Packet Filter (BPF) just-in-time compiler.
GROUP ID: V-281337RULE ID: SV-281337r1167161
When hardened, the extended BPF just-in-time (JIT) compiler will randomize any kernel addresses in the BPF programs and maps, and will not expose the JIT addresses in "/proc/kallsyms".
Solution
Configure RHEL 10 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