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:
77e6cdf
)
Don't crash if `sysctl.conf` has no options for parsing
author
Alexander Popov
<alex.popov@linux.com>
Wed, 16 Oct 2024 13:45:25 +0000
(16:45 +0300)
committer
Alexander Popov
<alex.popov@linux.com>
Mon, 21 Oct 2024 14:42:34 +0000
(17:42 +0300)
This fixes the broken Codeberg CI.
kernel_hardening_checker/engine.py
patch
|
blob
|
history
diff --git
a/kernel_hardening_checker/engine.py
b/kernel_hardening_checker/engine.py
index 139660a72676486832942d1c8e886de05b69ad78..45bebb4efbdbfa1bfffb9f69f22c3a46c1007f17 100755
(executable)
--- a/
kernel_hardening_checker/engine.py
+++ b/
kernel_hardening_checker/engine.py
@@
-348,7
+348,6
@@
def populate_simple_opt_with_data(opt: SimpleOptCheckType, data: DictOrTuple, da
assert(opt.opt_type != 'complex'), f'unexpected opt_type "{opt.opt_type}" for {opt}'
assert(opt.opt_type in SIMPLE_OPTION_TYPES), f'invalid opt_type "{opt.opt_type}"'
assert(data_type in SIMPLE_OPTION_TYPES), f'invalid data_type "{data_type}"'
- assert(data), 'empty data'
if data_type != opt.opt_type:
return