From 3ee12f0b61765ce2ce991328963fbf17f7adc91b Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Sun, 10 Jul 2022 01:16:03 +0300 Subject: [PATCH] Don't add CmdlineChecks in add_kconfig_checks() to avoid wrong results --- kconfig_hardened_check/__init__.py | 2 ++ 1 file changed, 2 insertions(+) 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'), -- 2.31.1