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
987a7f63
Commit
987a7f63
authored
Jul 14, 2018
by
Alexander Popov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ArgumentParser: drop unneeded default=False for args with action='store_true'
parent
69e0c6c4
Hide 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 @
987a7f63
...
@@ -216,9 +216,9 @@ def check_config_file(fname):
...
@@ -216,9 +216,9 @@ def check_config_file(fname):
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'
)
parser
.
add_argument
(
'-p'
,
'--print'
,
default
=
False
,
action
=
'store_true'
,
help
=
'print hardening preferences'
)
parser
.
add_argument
(
'-p'
,
'--print'
,
action
=
'store_true'
,
help
=
'print hardening preferences'
)
parser
.
add_argument
(
'-c'
,
'--config'
,
help
=
'check the config_file against these preferences'
)
parser
.
add_argument
(
'-c'
,
'--config'
,
help
=
'check the config_file against these preferences'
)
parser
.
add_argument
(
'--debug'
,
default
=
False
,
action
=
'store_true'
,
help
=
'enable internal debug mode'
)
parser
.
add_argument
(
'--debug'
,
action
=
'store_true'
,
help
=
'enable internal debug mode'
)
args
=
parser
.
parse_args
()
args
=
parser
.
parse_args
()
construct_opt_list
()
construct_opt_list
()
...
...
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