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
8cfef018
Commit
8cfef018
authored
6 years ago
by
Alexander Popov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Debug mode output should be printed before the final results
parent
dbbe0f02
master
…
v0.6.6
v0.6.1
v0.5.17
v0.5.14
v0.5.10
v0.5.9
v0.5.7
v0.5.5
v0.5.3
v0.5.2
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
kconfig-hardened-check.py
kconfig-hardened-check.py
+2
-1
No files found.
kconfig-hardened-check.py
View file @
8cfef018
...
@@ -215,13 +215,14 @@ def check_config_file(fname):
...
@@ -215,13 +215,14 @@ def check_config_file(fname):
parsed_options
[
option
]
=
value
parsed_options
[
option
]
=
value
perform_checks
(
parsed_options
)
perform_checks
(
parsed_options
)
print_check_results
()
if
debug_mode
:
if
debug_mode
:
opt_list_names
=
[
opt
[
0
]
.
name
for
opt
in
opt_list
]
opt_list_names
=
[
opt
[
0
]
.
name
for
opt
in
opt_list
]
for
option
in
filter
(
lambda
option
:
option
not
in
opt_list_names
,
parsed_options
.
keys
()):
for
option
in
filter
(
lambda
option
:
option
not
in
opt_list_names
,
parsed_options
.
keys
()):
print
(
"DEBUG: dunno about option {} "
.
format
(
option
))
print
(
"DEBUG: dunno about option {} "
.
format
(
option
))
print_check_results
()
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
parser
=
ArgumentParser
(
description
=
'Checks the hardening options in the Linux kernel config'
)
parser
=
ArgumentParser
(
description
=
'Checks the hardening options in the Linux kernel config'
)
...
...
This diff is collapsed.
Click to expand it.
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