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
b68eb59c
Commit
b68eb59c
authored
Jun 21, 2018
by
Alexander Popov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable buggy IP_SCTP to cut attack surface
parent
b6ee2f57
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
README.md
README.md
+2
-1
kconfig-hardened-check.py
kconfig-hardened-check.py
+1
-0
No files found.
README.md
View file @
b68eb59c
...
...
@@ -97,6 +97,7 @@ Usage: ./kconfig-hardened-check.py [-p | -c <config_file>]
CONFIG_LIVEPATCH | is not set | my | cut_attack_surface || FAIL: "y"
CONFIG_USER_NS | is not set | my | cut_attack_surface || FAIL: "y"
CONFIG_IP_DCCP | is not set | my | cut_attack_surface || FAIL: "m"
CONFIG_IP_SCTP | is not set | my | cut_attack_surface || FAIL: "m"
CONFIG_FTRACE | is not set | my | cut_attack_surface || FAIL: "y"
CONFIG_KPROBES | is not set | my | cut_attack_surface || FAIL: "y"
CONFIG_PROFILING | is not set | my | cut_attack_surface || FAIL: "y"
...
...
@@ -105,7 +106,7 @@ Usage: ./kconfig-hardened-check.py [-p | -c <config_file>]
CONFIG_BPF_SYSCALL | is not set | my | cut_attack_surface || FAIL: "y"
CONFIG_LKDTM | m | my | feature_test || FAIL: "is not set"
[-] config check is NOT PASSED:
39
errors
[-] config check is NOT PASSED:
40
errors
```
__Go and fix them all!__
...
...
kconfig-hardened-check.py
View file @
b68eb59c
...
...
@@ -96,6 +96,7 @@ def construct_opt_list():
opt_list
.
append
([
Opt
(
'LIVEPATCH'
,
'is not set'
,
'my'
,
'cut_attack_surface'
),
''
])
opt_list
.
append
([
Opt
(
'USER_NS'
,
'is not set'
,
'my'
,
'cut_attack_surface'
),
''
])
# user.max_user_namespaces=0
opt_list
.
append
([
Opt
(
'IP_DCCP'
,
'is not set'
,
'my'
,
'cut_attack_surface'
),
''
])
opt_list
.
append
([
Opt
(
'IP_SCTP'
,
'is not set'
,
'my'
,
'cut_attack_surface'
),
''
])
opt_list
.
append
([
Opt
(
'FTRACE'
,
'is not set'
,
'my'
,
'cut_attack_surface'
),
''
])
opt_list
.
append
([
Opt
(
'KPROBES'
,
'is not set'
,
'my'
,
'cut_attack_surface'
),
''
])
opt_list
.
append
([
Opt
(
'PROFILING'
,
'is not set'
,
'my'
,
'cut_attack_surface'
),
''
])
...
...
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