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
922ac4d7
Commit
922ac4d7
authored
Feb 11, 2022
by
Alexander Popov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename config to kconfig where needed (part II)
parent
f4ecbe8a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
__init__.py
kconfig_hardened_check/__init__.py
+4
-4
No files found.
kconfig_hardened_check/__init__.py
View file @
922ac4d7
#!/usr/bin/python3
#
# This tool helps me to check
the Linux kernel Kconfig option li
st
#
against
my security hardening preferences for X86_64, ARM64, X86_32, and ARM.
# This tool helps me to check
Linux kernel options again
st
# my security hardening preferences for X86_64, ARM64, X86_32, and ARM.
# Let the computers do their job!
#
# Author: Alexander Popov <alex.popov@linux.com>
...
...
@@ -741,7 +741,7 @@ def main():
parser
.
add_argument
(
'-p'
,
'--print'
,
choices
=
supported_archs
,
help
=
'print security hardening preferences for the selected architecture'
)
parser
.
add_argument
(
'-c'
,
'--config'
,
help
=
'check the kernel config file against these preferences'
)
help
=
'check the kernel
k
config file against these preferences'
)
parser
.
add_argument
(
'-m'
,
'--mode'
,
choices
=
report_modes
,
help
=
'choose the report mode'
)
args
=
parser
.
parse_args
()
...
...
@@ -756,7 +756,7 @@ def main():
if
args
.
config
:
if
mode
!=
'json'
:
print
(
'[+]
C
onfig file to check: {}'
.
format
(
args
.
config
))
print
(
'[+]
Kc
onfig file to check: {}'
.
format
(
args
.
config
))
arch
,
msg
=
detect_arch
(
args
.
config
,
supported_archs
)
if
not
arch
:
...
...
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