OS Manuals

/usr/bin/kernel-hardening-checker

kernel-hardening-checker for python3.13

From py3.13-kernel-hardening-checker 0.6.17.1-r2 (enterprise-packages), captured 2026-11-08 by running kernel-hardening-checker --help (exit 0). permalink

usage: kernel-hardening-checker [-h] [--version] [-m {verbose,json,show_ok,show_fail}] [-a]
                                [-c CONFIG] [-v KERNEL_VERSION] [-l CMDLINE] [-s SYSCTL]
                                [-p {X86_64,X86_32,ARM64,ARM,RISCV}]
                                [-g {X86_64,X86_32,ARM64,ARM,RISCV}]

A tool for checking the security hardening options of the Linux kernel

options:
  -h, --help            show this help message and exit
  --version             show program's version number and exit
  -m, --mode {verbose,json,show_ok,show_fail}
                        select a special output mode instead of the default one
  -a, --autodetect      autodetect and check the security hardening options of the running kernel
  -c, --config CONFIG   check the security hardening options in a Kconfig file (also supports *.gz
                        files)
  -v, --kernel-version KERNEL_VERSION
                        extract the kernel version from a version file (such as /proc/version)
                        instead of using a Kconfig file
  -l, --cmdline CMDLINE
                        check the security hardening options in a kernel command line file (such
                        as /proc/cmdline)
  -s, --sysctl SYSCTL   check the security hardening options in a sysctl output file (the result
                        of "sudo sysctl -a > file")
  -p, --print {X86_64,X86_32,ARM64,ARM,RISCV}
                        print security hardening recommendations for the selected architecture
  -g, --generate {X86_64,X86_32,ARM64,ARM,RISCV}
                        generate a Kconfig fragment containing the security hardening options for
                        the selected architecture
Options (10)
OptionDescriptionSource
-h, --helpshow this help message and exithelp
--versionshow program's version number and exithelp
-m, --mode verboseselect a special output mode instead of the default onehelp
-a, --autodetectautodetect and check the security hardening options of the running kernelhelp
-c, --config CONFIGcheck the security hardening options in a Kconfig file (also supports *.gz files)help
-v, --kernel-version KERNEL_VERSIONextract the kernel version from a version file (such as /proc/version) instead of using a Kconfig filehelp
-l, --cmdline CMDLINEcheck the security hardening options in a kernel command line file (such as /proc/cmdline)help
-s, --sysctl SYSCTLcheck the security hardening options in a sysctl output file (the result of "sudo sysctl -a > file")help
-p, --print X86_64print security hardening recommendations for the selected architecturehelp
-g, --generate X86_64generate a Kconfig fragment containing the security hardening options for the selected architecturehelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.