Commit 8cfef018 by Alexander Popov

Debug mode output should be printed before the final results

parent dbbe0f02
...@@ -215,13 +215,14 @@ def check_config_file(fname): ...@@ -215,13 +215,14 @@ def check_config_file(fname):
parsed_options[option] = value parsed_options[option] = value
perform_checks(parsed_options) perform_checks(parsed_options)
print_check_results()
if debug_mode: if debug_mode:
opt_list_names = [opt[0].name for opt in opt_list] opt_list_names = [opt[0].name for opt in opt_list]
for option in filter(lambda option: option not in opt_list_names, parsed_options.keys()): for option in filter(lambda option: option not in opt_list_names, parsed_options.keys()):
print("DEBUG: dunno about option {} ".format(option)) print("DEBUG: dunno about option {} ".format(option))
print_check_results()
if __name__ == '__main__': if __name__ == '__main__':
parser = ArgumentParser(description='Checks the hardening options in the Linux kernel config') parser = ArgumentParser(description='Checks the hardening options in the Linux kernel config')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment