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
a2b319a3
Commit
a2b319a3
authored
Jul 05, 2018
by
Alexander Popov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Consider 'not found' as an equivalent of 'is not set'
parent
995c93f8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
README.md
README.md
+4
-4
kconfig-hardened-check.py
kconfig-hardened-check.py
+5
-2
No files found.
README.md
View file @
a2b319a3
...
...
@@ -70,13 +70,13 @@ Usage: ./kconfig-hardened-check.py [-p | -c <config_file>]
CONFIG_DEBUG_CREDENTIALS | y | kspp | self_protection || FAIL: "is not set"
CONFIG_DEBUG_NOTIFIERS | y | kspp | self_protection || FAIL: "is not set"
CONFIG_MODULE_SIG_FORCE | y | kspp | self_protection || FAIL: "is not set"
CONFIG_HARDENED_USERCOPY_FALLBACK | is not set | kspp | self_protection ||
FAIL: not found
CONFIG_HARDENED_USERCOPY_FALLBACK | is not set | kspp | self_protection ||
OK: not found
CONFIG_GCC_PLUGIN_STACKLEAK | y | my | self_protection || FAIL: not found
CONFIG_SLUB_DEBUG_ON | y | my | self_protection || FAIL: "is not set"
CONFIG_SECURITY_DMESG_RESTRICT | y | my | self_protection || FAIL: "is not set"
CONFIG_STATIC_USERMODEHELPER | y | my | self_protection || FAIL: "is not set"
CONFIG_PAGE_POISONING_NO_SANITY | is not set | my | self_protection ||
FAIL: not found
CONFIG_PAGE_POISONING_ZERO | is not set | my | self_protection ||
FAIL: not found
CONFIG_PAGE_POISONING_NO_SANITY | is not set | my | self_protection ||
OK: not found
CONFIG_PAGE_POISONING_ZERO | is not set | my | self_protection ||
OK: not found
CONFIG_SECURITY | y | ubuntu18 | security_policy || OK
CONFIG_SECURITY_YAMA | y | ubuntu18 | security_policy || OK
CONFIG_SECURITY_SELINUX_DISABLE | is not set | ubuntu18 | security_policy || OK
...
...
@@ -127,7 +127,7 @@ Usage: ./kconfig-hardened-check.py [-p | -c <config_file>]
CONFIG_ARCH_MMAP_RND_BITS | 32 | my |userspace_protection|| FAIL: "28"
CONFIG_LKDTM | m | my | feature_test || FAIL: "is not set"
[-] config check is NOT PASSED: 5
5
errors
[-] config check is NOT PASSED: 5
2
errors
```
__Go and fix them all!__
...
...
kconfig-hardened-check.py
View file @
a2b319a3
...
...
@@ -147,8 +147,11 @@ def print_check_results():
print
(
' ==========================================================================================================='
)
for
o
in
opt_list
:
if
o
[
1
]
==
''
:
error_count
+=
1
o
[
1
]
=
'FAIL: not found'
if
o
[
0
]
.
state
==
'is not set'
:
o
[
1
]
=
'OK: not found'
else
:
error_count
+=
1
o
[
1
]
=
'FAIL: not found'
print
(
' CONFIG_{:<32}|{:^13}|{:^10}|{:^20}||{:^20}'
.
format
(
o
[
0
]
.
name
,
o
[
0
]
.
state
,
o
[
0
]
.
decision
,
o
[
0
]
.
reason
,
o
[
1
]))
print
()
...
...
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