From: Alexander Popov Date: Sat, 9 Jul 2022 22:16:03 +0000 (+0300) Subject: Don't add CmdlineChecks in add_kconfig_checks() to avoid wrong results X-Git-Tag: v0.6.1~130 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=3ee12f0b61765ce2ce991328963fbf17f7adc91b;p=kconfig-hardened-check.git Don't add CmdlineChecks in add_kconfig_checks() to avoid wrong results --- diff --git a/kconfig_hardened_check/__init__.py b/kconfig_hardened_check/__init__.py index 21e9e80..ddfc7af 100644 --- a/kconfig_hardened_check/__init__.py +++ b/kconfig_hardened_check/__init__.py @@ -644,6 +644,8 @@ def add_kconfig_checks(l, arch): def add_cmdline_checks(l, arch): # Calling the CmdlineCheck class constructor: # CmdlineCheck(reason, decision, name, expected) + # Don't add CmdlineChecks in add_kconfig_checks() to avoid wrong results + # when the tool doesn't check the cmdline. l += [OR(CmdlineCheck('self_protection', 'kspp', 'init_on_alloc', '1'), AND(KconfigCheck('self_protection', 'kspp', 'INIT_ON_ALLOC_DEFAULT_ON', 'y'),