Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kernel-hardening-checker
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-depend
kernel-hardening-checker
Commits
bde11060
Commit
bde11060
authored
Mar 07, 2020
by
Alexander Popov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add SECURITY_LOADPIN_ENFORCE check
parent
79735842
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
kconfig-hardened-check.py
kconfig-hardened-check.py
+5
-1
No files found.
kconfig-hardened-check.py
View file @
bde11060
...
...
@@ -20,6 +20,7 @@
# page_poison=1 (if enabled)
# init_on_alloc=1
# init_on_free=1
# loadpin.enforce=1
#
# Mitigations of CPU vulnerabilities:
# Аrch-independent:
...
...
@@ -347,7 +348,10 @@ def construct_checklist(checklist, arch):
if
debug_mode
or
arch
==
'ARM'
:
checklist
.
append
(
OptCheck
(
'SECURITY'
,
'y'
,
'kspp'
,
'security_policy'
))
# and choose your favourite LSM
checklist
.
append
(
OptCheck
(
'SECURITY_YAMA'
,
'y'
,
'kspp'
,
'security_policy'
))
checklist
.
append
(
OptCheck
(
'SECURITY_LOADPIN'
,
'y'
,
'my'
,
'security_policy'
))
# needs userspace support
loadpin_is_set
=
OptCheck
(
'SECURITY_LOADPIN'
,
'y'
,
'my'
,
'security_policy'
)
# needs userspace support
checklist
.
append
(
loadpin_is_set
)
checklist
.
append
(
AND
(
OptCheck
(
'SECURITY_LOADPIN_ENFORCE'
,
'y'
,
'my'
,
'security_policy'
),
\
loadpin_is_set
))
checklist
.
append
(
OptCheck
(
'SECURITY_LOCKDOWN_LSM'
,
'y'
,
'my'
,
'security_policy'
))
checklist
.
append
(
OptCheck
(
'SECURITY_LOCKDOWN_LSM_EARLY'
,
'y'
,
'my'
,
'security_policy'
))
checklist
.
append
(
OptCheck
(
'LOCK_DOWN_KERNEL_FORCE_CONFIDENTIALITY'
,
'y'
,
'my'
,
'security_policy'
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment