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
17c22224
Commit
17c22224
authored
Mar 05, 2020
by
Alexander Popov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
REFCOUNT_FULL is enabled by default since v5.5
parent
918b12cf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
kconfig-hardened-check.py
kconfig-hardened-check.py
+2
-2
No files found.
kconfig-hardened-check.py
View file @
17c22224
...
...
@@ -232,6 +232,8 @@ def construct_checklist(checklist, arch):
OptCheck
(
'DEBUG_SET_MODULE_RONX'
,
'y'
,
'defconfig'
,
'self_protection'
),
\
modules_not_set
))
# DEBUG_SET_MODULE_RONX was before v4.11
checklist
.
append
(
OptCheck
(
'GCC_PLUGINS'
,
'y'
,
'defconfig'
,
'self_protection'
))
checklist
.
append
(
OR
(
OptCheck
(
'REFCOUNT_FULL'
,
'y'
,
'defconfig'
,
'self_protection'
),
\
VerCheck
((
5
,
5
))))
# REFCOUNT_FULL is enabled by default since v5.5
if
debug_mode
or
arch
==
'X86_64'
or
arch
==
'X86_32'
:
checklist
.
append
(
OptCheck
(
'MICROCODE'
,
'y'
,
'defconfig'
,
'self_protection'
))
# is needed for mitigating CPU bugs
checklist
.
append
(
OptCheck
(
'RETPOLINE'
,
'y'
,
'defconfig'
,
'self_protection'
))
...
...
@@ -262,7 +264,6 @@ def construct_checklist(checklist, arch):
checklist
.
append
(
OptCheck
(
'CPU_SW_DOMAIN_PAN'
,
'y'
,
'defconfig'
,
'self_protection'
))
checklist
.
append
(
OptCheck
(
'STACKPROTECTOR_PER_TASK'
,
'y'
,
'defconfig'
,
'self_protection'
))
if
debug_mode
or
arch
==
'ARM64'
or
arch
==
'ARM'
:
checklist
.
append
(
OptCheck
(
'REFCOUNT_FULL'
,
'y'
,
'defconfig'
,
'self_protection'
))
checklist
.
append
(
OptCheck
(
'HARDEN_BRANCH_PREDICTOR'
,
'y'
,
'defconfig'
,
'self_protection'
))
checklist
.
append
(
OptCheck
(
'BUG_ON_DATA_CORRUPTION'
,
'y'
,
'kspp'
,
'self_protection'
))
...
...
@@ -293,7 +294,6 @@ def construct_checklist(checklist, arch):
modules_not_set
))
# refers to LOCK_DOWN_KERNEL
if
debug_mode
or
arch
==
'X86_64'
or
arch
==
'X86_32'
:
checklist
.
append
(
OptCheck
(
'DEFAULT_MMAP_MIN_ADDR'
,
'65536'
,
'kspp'
,
'self_protection'
))
checklist
.
append
(
OptCheck
(
'REFCOUNT_FULL'
,
'y'
,
'kspp'
,
'self_protection'
))
if
debug_mode
or
arch
==
'X86_32'
:
checklist
.
append
(
OptCheck
(
'HIGHMEM64G'
,
'y'
,
'kspp'
,
'self_protection'
))
checklist
.
append
(
OptCheck
(
'X86_PAE'
,
'y'
,
'kspp'
,
'self_protection'
))
...
...
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