From: Alexander Popov Date: Thu, 2 May 2024 11:52:27 +0000 (+0300) Subject: Fix the reason and decision of the BPF_JIT check X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;ds=sidebyside;h=b7fd998a9cfa6c25fad3a530a15d5ac9a9bf8c83;p=kconfig-hardened-check.git Fix the reason and decision of the BPF_JIT check KSPP doesn't recommend to disable it. Refers to #125 --- diff --git a/kernel_hardening_checker/checks.py b/kernel_hardening_checker/checks.py index 9093b9b..a1fb941 100644 --- a/kernel_hardening_checker/checks.py +++ b/kernel_hardening_checker/checks.py @@ -667,7 +667,7 @@ def add_sysctl_checks(l, _arch): have_config_file = KconfigCheck('-', '-', 'LOCALVERSION', 'is present') l += [OR(SysctlCheck('self_protection', 'kspp', 'net.core.bpf_jit_harden', '2'), - AND(KconfigCheck('cut_attack_surface', 'kspp', 'BPF_JIT', 'is not set'), + AND(KconfigCheck('-', '-', 'BPF_JIT', 'is not set'), have_config_file))] l += [SysctlCheck('cut_attack_surface', 'kspp', 'kernel.dmesg_restrict', '1')]