From: Alexander Popov Date: Mon, 30 Jul 2018 10:47:05 +0000 (+0300) Subject: Update the function names according to the new meaning X-Git-Tag: v0.5.2~80 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=77c84a4baaf777e81ff339ad60b3a800b1c89980;p=kconfig-hardened-check.git Update the function names according to the new meaning --- diff --git a/kconfig-hardened-check.py b/kconfig-hardened-check.py index ca82068..d86b429 100755 --- a/kconfig-hardened-check.py +++ b/kconfig-hardened-check.py @@ -95,7 +95,7 @@ class OR: return False, self.result -def construct_opt_checks(): +def construct_checklist(): modules_not_set = OptCheck('MODULES', 'is not set', 'kspp', 'cut_attack_surface') devmem_not_set = OptCheck('DEVMEM', 'is not set', 'kspp', 'cut_attack_surface') @@ -204,7 +204,7 @@ def construct_opt_checks(): # checklist.append(OptCheck('LKDTM', 'm', 'my', 'feature_test')) -def print_opt_checks(): +def print_checklist(): print('[+] Printing kernel hardening preferences...') print(' {:<39}|{:^13}|{:^10}|{:^20}'.format('option name', 'desired val', 'decision', 'reason')) print(' ======================================================================================') @@ -278,10 +278,10 @@ if __name__ == '__main__': parser.add_argument('--debug', action='store_true', help='enable internal debug mode') args = parser.parse_args() - construct_opt_checks() + construct_checklist() if args.print: - print_opt_checks() + print_checklist() sys.exit(0) if args.debug: