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
d1a8bb6a
Commit
d1a8bb6a
authored
Jun 19, 2021
by
Alexander Popov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SECURITY_DMESG_RESTRICT is recommended by KSPP now
parent
a486a640
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
__init__.py
kconfig_hardened_check/__init__.py
+2
-2
No files found.
kconfig_hardened_check/__init__.py
View file @
d1a8bb6a
...
...
@@ -36,7 +36,7 @@
#
# N.B. Hardening sysctls:
# kernel.kptr_restrict=2 (or 1?)
# kernel.dmesg_restrict=1
# kernel.dmesg_restrict=1
(also see the kconfig option)
# kernel.perf_event_paranoid=3
# kernel.kexec_load_disabled=1
# kernel.yama.ptrace_scope=3
...
...
@@ -328,6 +328,7 @@ def construct_checklist(l, arch):
l
+=
[
OptCheck
(
'self_protection'
,
'defconfig'
,
'HARDEN_BRANCH_PREDICTOR'
,
'y'
)]
# 'self_protection', 'kspp'
l
+=
[
OptCheck
(
'self_protection'
,
'kspp'
,
'SECURITY_DMESG_RESTRICT'
,
'y'
)]
l
+=
[
OptCheck
(
'self_protection'
,
'kspp'
,
'BUG_ON_DATA_CORRUPTION'
,
'y'
)]
l
+=
[
OptCheck
(
'self_protection'
,
'kspp'
,
'DEBUG_WX'
,
'y'
)]
l
+=
[
OptCheck
(
'self_protection'
,
'kspp'
,
'SCHED_STACK_END_CHECK'
,
'y'
)]
...
...
@@ -375,7 +376,6 @@ def construct_checklist(l, arch):
l
+=
[
OptCheck
(
'self_protection'
,
'kspp'
,
'DEFAULT_MMAP_MIN_ADDR'
,
'32768'
)]
# 'self_protection', 'clipos'
l
+=
[
OptCheck
(
'self_protection'
,
'clipos'
,
'SECURITY_DMESG_RESTRICT'
,
'y'
)]
l
+=
[
OptCheck
(
'self_protection'
,
'clipos'
,
'DEBUG_VIRTUAL'
,
'y'
)]
l
+=
[
OptCheck
(
'self_protection'
,
'clipos'
,
'STATIC_USERMODEHELPER'
,
'y'
)]
# needs userspace support
l
+=
[
OptCheck
(
'self_protection'
,
'clipos'
,
'EFI_DISABLE_PCI_DMA'
,
'y'
)]
...
...
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