Skip to content

Commit

Permalink
Merge pull request #855 from m-1-k-3/master
Browse files Browse the repository at this point in the history
kernel-hardening-checker fix
  • Loading branch information
m-1-k-3 committed Nov 1, 2023
2 parents d26b312 + 57eb792 commit a138589
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions modules/S24_kernel_bin_identifier.sh
Original file line number Diff line number Diff line change
Expand Up @@ -265,10 +265,9 @@ try_decompress() {

check_kconfig() {
local KCONFIG_FILE="${1:-}"
local KCONF_HARD_CHECKER="${EXT_DIR}"/kconfig-hardened-check/bin/kernel-hardening-checker

if [[ -e "$EXT_DIR"/kconfig-hardened-check/bin/kconfig-hardened-check ]]; then
KCONF_HARD_CHECKER="$EXT_DIR/kconfig-hardened-check/bin/kconfig-hardened-check"
else
if ! [[ -e "${KCONF_HARD_CHECKER}" ]]; then
print_output "[-] Kernel config hardening checker not found"
return
fi
Expand Down

0 comments on commit a138589

Please sign in to comment.