Don't add CmdlineChecks in add_kconfig_checks() to avoid wrong results
authorAlexander Popov <alex.popov@linux.com>
Sat, 9 Jul 2022 22:16:03 +0000 (01:16 +0300)
committerAlexander Popov <alex.popov@linux.com>
Sat, 9 Jul 2022 22:16:03 +0000 (01:16 +0300)
kconfig_hardened_check/__init__.py

index 21e9e800ba83de87e92ee978cbb93148fe7c0669..ddfc7af1b3ecbe1dd250772496178f92ac7b4d6a 100644 (file)
@@ -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'),