From: Alexander Popov Date: Sun, 16 Jun 2024 04:24:56 +0000 (+0300) Subject: Add the "MAGIC_SYSRQ_SERIAL" check X-Git-Tag: v0.6.10~47 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=d995dd6eab4d14d8400abe16bbf14c3364f99fb6;p=kconfig-hardened-check.git Add the "MAGIC_SYSRQ_SERIAL" check Thanks to @thestinger. Refers to #104. --- diff --git a/kernel_hardening_checker/checks.py b/kernel_hardening_checker/checks.py index 0d6d703..42d9407 100755 --- a/kernel_hardening_checker/checks.py +++ b/kernel_hardening_checker/checks.py @@ -421,6 +421,8 @@ def add_kconfig_checks(l: List[ChecklistObjType], arch: str) -> None: l += [KconfigCheck('cut_attack_surface', 'a13xp0p0v', 'BLK_DEV_WRITE_MOUNTED', 'is not set')] l += [OR(KconfigCheck('cut_attack_surface', 'a13xp0p0v', 'TRIM_UNUSED_KSYMS', 'y'), modules_not_set)] + l += [OR(KconfigCheck('cut_attack_surface', 'a13xp0p0v', 'MAGIC_SYSRQ_SERIAL', 'is not set'), + KconfigCheck('cut_attack_surface', 'a13xp0p0v', 'MAGIC_SYSRQ_DEFAULT_ENABLE', '0x0'))] # 'harden_userspace'