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:
5a149f0
)
Add HARDENED_USERCOPY_PAGESPAN check from KSPP
author
Alexander Popov
<alex.popov@linux.com>
Tue, 21 Sep 2021 19:29:22 +0000
(22:29 +0300)
committer
Alexander Popov
<alex.popov@linux.com>
Tue, 21 Sep 2021 19:29:22 +0000
(22:29 +0300)
kconfig_hardened_check/__init__.py
patch
|
blob
|
history
diff --git
a/kconfig_hardened_check/__init__.py
b/kconfig_hardened_check/__init__.py
index 530c45f6021751a1e1b2df827bd55a892bd7bb9f..21d3bfbd11975ae26c705dd75110793edb8b60c9 100644
(file)
--- a/
kconfig_hardened_check/__init__.py
+++ b/
kconfig_hardened_check/__init__.py
@@
-362,6
+362,8
@@
def construct_checklist(l, arch):
l += [hardened_usercopy_is_set]
l += [AND(OptCheck('self_protection', 'kspp', 'HARDENED_USERCOPY_FALLBACK', 'is not set'),
hardened_usercopy_is_set)]
+ l += [AND(OptCheck('self_protection', 'kspp', 'HARDENED_USERCOPY_PAGESPAN', 'is not set'),
+ hardened_usercopy_is_set)]
l += [OR(OptCheck('self_protection', 'kspp', 'MODULE_SIG', 'y'),
modules_not_set)]
l += [OR(OptCheck('self_protection', 'kspp', 'MODULE_SIG_ALL', 'y'),