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 the KSPP recommendations (https://github.com/KSPP/linux/issues/362)
[kconfig-hardened-check.git]
/
kernel_hardening_checker
/
__init__.py
diff --git
a/kernel_hardening_checker/__init__.py
b/kernel_hardening_checker/__init__.py
old mode 100644
(file)
new mode 100755
(executable)
index
5893fab
..
043dae8
--- a/
kernel_hardening_checker/__init__.py
+++ b/
kernel_hardening_checker/__init__.py
@@
-116,12
+116,12
@@
def print_checklist(mode: StrOrNone, checklist: List[ChecklistObjType], with_res
ok_count += 1
if mode == 'show_fail':
continue
ok_count += 1
if mode == 'show_fail':
continue
- elif opt.result.startswith('FAIL'):
+ else:
+ assert(opt.result.startswith('FAIL')), \
+ f'unexpected result "{opt.result}" of {opt.name} check'
fail_count += 1
if mode == 'show_ok':
continue
fail_count += 1
if mode == 'show_ok':
continue
- else:
- assert(False), f'unexpected result "{opt.result}" of {opt.name} check'
opt.table_print(mode, with_results)
print()
if mode == 'verbose':
opt.table_print(mode, with_results)
print()
if mode == 'verbose':