From: Alexander Popov Date: Thu, 22 Oct 2020 19:46:27 +0000 (+0300) Subject: Add the recommendation about TRIM_UNUSED_KSYMS X-Git-Tag: v0.5.9~5 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=1ce2fdcf3638feef937895f40f523d72f0fb054b;p=kconfig-hardened-check.git Add the recommendation about TRIM_UNUSED_KSYMS --- diff --git a/kconfig_hardened_check/__init__.py b/kconfig_hardened_check/__init__.py index eb256de..5873a79 100644 --- a/kconfig_hardened_check/__init__.py +++ b/kconfig_hardened_check/__init__.py @@ -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')]