Add the MODULE_FORCE_LOAD check
[kconfig-hardened-check.git] / kernel_hardening_checker / checks.py
index 5daf88911c000bfb815c2f1b61937dbfb0262d28..9dacb51be97c614a8ecec22128b59033702043d8 100644 (file)
@@ -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':