From: Alexander Popov Date: Sat, 9 Dec 2023 05:47:55 +0000 (+0300) Subject: Add the MODULE_FORCE_LOAD check X-Git-Tag: v0.6.6~40 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=e5f804ede6ea7f66f674c2825396c15c216c718d;p=kconfig-hardened-check.git Add the MODULE_FORCE_LOAD check Thanks to @vobst for the idea --- diff --git a/kernel_hardening_checker/checks.py b/kernel_hardening_checker/checks.py index 5daf889..9dacb51 100644 --- a/kernel_hardening_checker/checks.py +++ b/kernel_hardening_checker/checks.py @@ -378,6 +378,7 @@ def add_kconfig_checks(l, arch): l += [KconfigCheck('cut_attack_surface', 'my', 'XFS_SUPPORT_V4', 'is not set')] l += [OR(KconfigCheck('cut_attack_surface', 'my', 'TRIM_UNUSED_KSYMS', 'y'), modules_not_set)] + l += [KconfigCheck('cut_attack_surface', 'my', 'MODULE_FORCE_LOAD', 'is not set')] # 'harden_userspace' if arch == 'ARM64':