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:
0a9d3d0
)
Add the nosmt check
author
Alexander Popov
<alex.popov@linux.com>
Wed, 9 Nov 2022 15:32:52 +0000
(18:32 +0300)
committer
Alexander Popov
<alex.popov@linux.com>
Wed, 9 Nov 2022 15:32:52 +0000
(18:32 +0300)
kconfig_hardened_check/__init__.py
patch
|
blob
|
history
diff --git
a/kconfig_hardened_check/__init__.py
b/kconfig_hardened_check/__init__.py
index 3e3997d867dbccb6f6f115dd791745b01e6e926c..c226cc921ab5104b636414d7d81925bec30bfbf0 100644
(file)
--- a/
kconfig_hardened_check/__init__.py
+++ b/
kconfig_hardened_check/__init__.py
@@
-745,6
+745,7
@@
def add_cmdline_checks(l, arch):
CmdlineCheck('self_protection', 'defconfig', 'rodata', 'is not set'))]
# 'self_protection', 'kspp'
+ l += [CmdlineCheck('self_protection', 'kspp', 'nosmt')] # option presence check
l += [OR(CmdlineCheck('self_protection', 'kspp', 'init_on_alloc', '1'),
AND(KconfigCheck('self_protection', 'kspp', 'INIT_ON_ALLOC_DEFAULT_ON', 'y'),
CmdlineCheck('self_protection', 'kspp', 'init_on_alloc', 'is not set')))]