projects
/
kconfig-hardened-check.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f4ecbe8
)
Rename config to kconfig where needed (part II)
author
Alexander Popov
<alex.popov@linux.com>
Fri, 11 Feb 2022 17:08:41 +0000
(20:08 +0300)
committer
Alexander Popov
<alex.popov@linux.com>
Fri, 11 Feb 2022 17:47:56 +0000
(20:47 +0300)
kconfig_hardened_check/__init__.py
patch
|
blob
|
history
diff --git
a/kconfig_hardened_check/__init__.py
b/kconfig_hardened_check/__init__.py
index 5f10d591e6b8254e1b36fd35f7bf3c4254b3eb61..bc0892aee602d17404b300db4a00bfdca96f8179 100644
(file)
--- a/
kconfig_hardened_check/__init__.py
+++ b/
kconfig_hardened_check/__init__.py
@@
-1,8
+1,8
@@
#!/usr/bin/python3
#
#!/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>
# 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',
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()
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':
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:
arch, msg = detect_arch(args.config, supported_archs)
if not arch: