From: Alexander Popov Date: Sun, 7 Jul 2024 15:39:22 +0000 (+0300) Subject: Add the FAULT_INJECTION check X-Git-Tag: v0.6.10~32 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=eb1f11a8f647309c7d7f425c8ef28ca82f6b3ba5;p=kconfig-hardened-check.git Add the FAULT_INJECTION check Thanks to @izh1979 for the idea. --- diff --git a/kernel_hardening_checker/checks.py b/kernel_hardening_checker/checks.py index b8cc895..6b89bd7 100755 --- a/kernel_hardening_checker/checks.py +++ b/kernel_hardening_checker/checks.py @@ -423,6 +423,7 @@ def add_kconfig_checks(l: List[ChecklistObjType], arch: str) -> None: l += [KconfigCheck('cut_attack_surface', 'a13xp0p0v', 'CORESIGHT', 'is not set')] l += [KconfigCheck('cut_attack_surface', 'a13xp0p0v', 'XFS_SUPPORT_V4', 'is not set')] l += [KconfigCheck('cut_attack_surface', 'a13xp0p0v', 'BLK_DEV_WRITE_MOUNTED', 'is not set')] + l += [KconfigCheck('cut_attack_surface', 'a13xp0p0v', 'FAULT_INJECTION', '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'),