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:
903b0fa
)
Add the SPECULATION_MITIGATIONS check
author
Alexander Popov
<alex.popov@linux.com>
Sat, 9 Dec 2023 19:06:13 +0000
(22:06 +0300)
committer
Alexander Popov
<alex.popov@linux.com>
Sat, 9 Dec 2023 19:06:13 +0000
(22:06 +0300)
kernel_hardening_checker/checks.py
patch
|
blob
|
history
diff --git
a/kernel_hardening_checker/checks.py
b/kernel_hardening_checker/checks.py
index 715c278a42f47841974980bf0a8f5d0b24a44e6c..748ba2274821f1ec69f89f6e75c271910c074ba1 100644
(file)
--- a/
kernel_hardening_checker/checks.py
+++ b/
kernel_hardening_checker/checks.py
@@
-58,6
+58,7
@@
def add_kconfig_checks(l, arch):
if arch in ('X86_64', 'ARM64', 'ARM'):
l += [KconfigCheck('self_protection', 'defconfig', 'VMAP_STACK', 'y')]
if arch in ('X86_64', 'X86_32'):
+ l += [KconfigCheck('self_protection', 'defconfig', 'SPECULATION_MITIGATIONS', 'y')]
l += [KconfigCheck('self_protection', 'defconfig', 'DEBUG_WX', 'y')]
l += [KconfigCheck('self_protection', 'defconfig', 'WERROR', 'y')]
l += [KconfigCheck('self_protection', 'defconfig', 'X86_MCE', 'y')]