Check the kernel.dmesg_restrict sysctl
authorAlexander Popov <alex.popov@linux.com>
Sun, 23 Jul 2023 21:15:57 +0000 (00:15 +0300)
committerAlexander Popov <alex.popov@linux.com>
Sun, 23 Jul 2023 21:15:57 +0000 (00:15 +0300)
kconfig_hardened_check/checks.py

index fc63f3a7df593bf2ec1c4235cca04a110fe3dbba..e30746c9fc0c3af0f4a60ef75a8f8d73b486e7d1 100644 (file)
@@ -609,4 +609,4 @@ def add_sysctl_checks(l, arch):
 
     l += [SysctlCheck('self_protection', 'kspp', 'net.core.bpf_jit_harden', '2')]
 
-    l += [SysctlCheck('self_protection', 'kspp', 'kernel.dmesg_restrict', '1')]
+    l += [SysctlCheck('cut_attack_surface', 'kspp', 'kernel.dmesg_restrict', '1')]