Add the recommendation about TRIM_UNUSED_KSYMS
[kconfig-hardened-check.git] / kconfig_hardened_check / __init__.py
index eb256de8b2e95b47ede1045bbbab2535d7886f2b..5873a7994faa0324a487f674dfedfe14676e3109 100644 (file)
@@ -509,6 +509,7 @@ def construct_checklist(l, arch):
     l += [OptCheck('cut_attack_surface', 'lockdown', 'MMIOTRACE_TEST', 'is not set')] # refers to LOCKDOWN
 
     # 'cut_attack_surface', 'my'
+    l += [OptCheck('cut_attack_surface', 'my', 'TRIM_UNUSED_KSYMS', 'y')]
     l += [OptCheck('cut_attack_surface', 'my', 'MMIOTRACE', 'is not set')] # refers to LOCKDOWN (permissive)
     l += [OptCheck('cut_attack_surface', 'my', 'LIVEPATCH', 'is not set')]
     l += [OptCheck('cut_attack_surface', 'my', 'IP_DCCP', 'is not set')]