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:
7496355
)
Add a check for X86_USER_SHADOW_STACK
author
jvoisin
<julien.voisin@dustri.org>
Mon, 15 Apr 2024 12:05:42 +0000
(14:05 +0200)
committer
jvoisin
<julien.voisin@dustri.org>
Mon, 15 Apr 2024 12:05:42 +0000
(14:05 +0200)
This should close #114
kernel_hardening_checker/checks.py
patch
|
blob
|
history
diff --git
a/kernel_hardening_checker/checks.py
b/kernel_hardening_checker/checks.py
index 5aff75e221f792e5a6e9b2e6910025b7626eae95..21f4d2f5316fa6a8090037af5e7b314c8965db45 100644
(file)
--- a/
kernel_hardening_checker/checks.py
+++ b/
kernel_hardening_checker/checks.py
@@
-400,6
+400,8
@@
def add_kconfig_checks(l, arch):
l += [KconfigCheck('cut_attack_surface', 'a13xp0p0v', 'MODULE_FORCE_LOAD', 'is not set')]
# 'harden_userspace'
+ if arch == 'X86_64':
+ l += [KconfigCheck('harden_userspace', 'defconfig', 'X86_USER_SHADOW_STACK', 'y')]
if arch == 'ARM64':
l += [KconfigCheck('harden_userspace', 'defconfig', 'ARM64_PTR_AUTH', 'y')]
l += [KconfigCheck('harden_userspace', 'defconfig', 'ARM64_BTI', 'y')]