Skip bpf_jit_harden sysctl if BPF_JIT is not set
authorEneas U de Queiroz <cotequeiroz@gmail.com>
Wed, 6 Sep 2023 17:20:53 +0000 (14:20 -0300)
committerAlexander Popov <alex.popov@linux.com>
Thu, 2 May 2024 09:18:14 +0000 (12:18 +0300)
commitb4e374903e5e22dddfce8be0c4162fa7dcd20808
treed91c597f5c1b1136d3dbd1edf549ea72931bafee
parent348a353429650be8e192557aece8c30c90d68828
Skip bpf_jit_harden sysctl if BPF_JIT is not set

Also, switch the test for root sysctl to the 'kernel.cad_pid' symbol.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
kernel_hardening_checker/__init__.py
kernel_hardening_checker/checks.py