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:
6ae70f5
)
Check the nosmap and nosmep cmdline parameters
author
Alexander Popov
<alex.popov@linux.com>
Fri, 2 Sep 2022 11:30:38 +0000
(14:30 +0300)
committer
Alexander Popov
<alex.popov@linux.com>
Fri, 2 Sep 2022 11:30:38 +0000
(14:30 +0300)
kconfig_hardened_check/__init__.py
patch
|
blob
|
history
diff --git
a/kconfig_hardened_check/__init__.py
b/kconfig_hardened_check/__init__.py
index 41d6520fc4a0594a8d531d291956c63b0343635b..e62fad6890ca0484dfd93d24d33f782b953b1993 100644
(file)
--- a/
kconfig_hardened_check/__init__.py
+++ b/
kconfig_hardened_check/__init__.py
@@
-719,6
+719,10
@@
def add_cmdline_checks(l, arch):
# 'self_protection', 'clipos'
l += [CmdlineCheck('self_protection', 'clipos', 'page_alloc.shuffle', '1')]
+ # 'self_protection', 'my'
+ l += [CmdlineCheck('self_protection', 'my', 'nosmep', 'is not set')]
+ l += [CmdlineCheck('self_protection', 'my', 'nosmap', 'is not set')]
+
# 'cut_attack_surface', 'kspp'
if arch == 'X86_64':
l += [OR(CmdlineCheck('cut_attack_surface', 'kspp', 'vsyscall', 'none'),