Merge branch 'from-flipthewho-1'
[kconfig-hardened-check.git] / bin / kernel-hardening-checker
1 #!/usr/bin/env python3
2
3 """
4 This tool is for checking the security hardening options of the Linux kernel.
5
6 SPDX-FileCopyrightText: Alexander Popov <alex.popov@linux.com>
7 SPDX-License-Identifier: GPL-3.0-only
8
9 This file is for using the tool without installation via setuptools.
10 """
11
12 import os
13 import sys
14 import inspect
15
16 current_dir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
17 parent_dir = os.path.dirname(current_dir)
18 sys.path.insert(0, parent_dir)
19
20 import kernel_hardening_checker
21
22 kernel_hardening_checker.main()