projects
/
kconfig-hardened-check.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update kspp-cmdline-x86-64.txt
[kconfig-hardened-check.git]
/
kernel_hardening_checker
/
engine.py
diff --git
a/kernel_hardening_checker/engine.py
b/kernel_hardening_checker/engine.py
index 4fdc222e7e8ac3d9fec6a2cf0a3c60c411f8c918..4e4eee91b413c1b1f1408b92645e285a9aab1539 100644
(file)
--- a/
kernel_hardening_checker/engine.py
+++ b/
kernel_hardening_checker/engine.py
@@
-1,4
+1,4
@@
-#!/usr/bin/python3
+#!/usr/bin/
env
python3
"""
This tool is for checking the security hardening options of the Linux kernel.
"""
This tool is for checking the security hardening options of the Linux kernel.
@@
-20,10
+20,9
@@
def colorize_result(input_text):
return input_text
if input_text.startswith('OK'):
color = GREEN_COLOR
return input_text
if input_text.startswith('OK'):
color = GREEN_COLOR
- elif input_text.startswith('FAIL:'):
- color = RED_COLOR
else:
else:
- assert(False), f'unexpected result "{input_text}"'
+ assert(input_text.startswith('FAIL:')), f'unexpected result "{input_text}"'
+ color = RED_COLOR
return f'{color}{input_text}{COLOR_END}'
return f'{color}{input_text}{COLOR_END}'