X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=kconfig-hardened-check.py;h=791a2f8b6c921e9492f1ffaa36ee6b9499dccaec;hb=a4019f89e8749945a61dfc277798333d825388df;hp=e5867225650ecbebe95cd218084e93181f09c128;hpb=99604da39bf0baad6a113f2a37fed01fb418c690;p=kconfig-hardened-check.git diff --git a/kconfig-hardened-check.py b/kconfig-hardened-check.py index e586722..791a2f8 100755 --- a/kconfig-hardened-check.py +++ b/kconfig-hardened-check.py @@ -216,10 +216,10 @@ def print_checklist(): print('[+] Printing kernel hardening preferences...') print(' {:<39}|{:^13}|{:^10}|{:^20}'.format( 'option name', 'desired val', 'decision', 'reason')) - print(' ' + '=' * 88) + print(' ' + '=' * 86) for opt in checklist: print(' CONFIG_{:<32}|{:^13}|{:^10}|{:^20}'.format( - opt.name, opt.expected, opt.decision, opt.reason)) + opt.name, opt.expected, opt.decision, opt.reason)) print() @@ -234,7 +234,7 @@ def print_check_results(): def get_option_state(options, name): - return options[name] if name in options else None + return options.get(name, None) def perform_checks(parsed_options):