7 - echo "Prepare for the installation..."
12 - echo "Install the package via pip..."
13 - pip --verbose install --no-cache-dir git+https://github.com/a13xp0p0v/kernel-hardening-checker
14 - echo "Run the installed tool..."
15 - which kernel-hardening-checker
16 - kernel-hardening-checker
17 - echo "Check all configs with the installed tool..."
18 - sysctl -a > /tmp/sysctls
19 - CONFIG_DIR=`find /usr/local/lib/ -name config_files`
20 - KCONFIGS=`find $CONFIG_DIR -type f | grep -e "\.config" -e "\.gz"`
22 - for C in $KCONFIGS; do COUNT=$(expr $COUNT + 1); echo ">>>>> checking kconfig number $COUNT <<<<<"; kernel-hardening-checker -c $C -l /proc/cmdline -s /tmp/sysctls; done
23 - echo "Have checked $COUNT kconfigs"
24 functional-test-with-coverage:
28 - echo "Install the coverage tool..."
30 - pip install --no-cache-dir coverage
31 - echo "Run the functional tests and collect the coverage..."
32 - sh .github/workflows/functional_test.sh
33 - echo "Show the coverage report..."