projects
/
kconfig-hardened-check.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c1e4cc
)
Don't add CmdlineChecks in add_kconfig_checks() to avoid wrong results
author
Alexander Popov
<alex.popov@linux.com>
Sat, 9 Jul 2022 22:16:03 +0000
(
01:16
+0300)
committer
Alexander Popov
<alex.popov@linux.com>
Sat, 9 Jul 2022 22:16:03 +0000
(
01:16
+0300)
kconfig_hardened_check/__init__.py
patch
|
blob
|
history
diff --git
a/kconfig_hardened_check/__init__.py
b/kconfig_hardened_check/__init__.py
index 21e9e800ba83de87e92ee978cbb93148fe7c0669..ddfc7af1b3ecbe1dd250772496178f92ac7b4d6a 100644
(file)
--- 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'),