diff --git a/bin/hardening/disable_rds.sh b/bin/hardening/disable_rds.sh index 479a7ee1..8ac06d5f 100755 --- a/bin/hardening/disable_rds.sh +++ b/bin/hardening/disable_rds.sh @@ -57,9 +57,9 @@ apply() { # In an unprivileged container, the kernel modules are host dependent, so you should consider enforcing it ok "Container detected, consider host enforcing!" else - is_kernel_module_loaded "$KERNEL_OPTION" "$LOADED_MODULE_NAME" + is_kernel_module_loaded "$KERNEL_OPTION" "$MODULE_NAME" if [ "$FNRET" -eq 0 ]; then # 0 means true in bash, so it IS activated - crit "$LOADED_MODULE_NAME is loaded!" + crit "$MODULE_NAME is loaded!" warn "I wont unload the module, unload it manually or recompile the kernel if needed" fi diff --git a/bin/hardening/disable_tipc.sh b/bin/hardening/disable_tipc.sh index 7085b577..4adc2464 100755 --- a/bin/hardening/disable_tipc.sh +++ b/bin/hardening/disable_tipc.sh @@ -57,9 +57,9 @@ apply() { # In an unprivileged container, the kernel modules are host dependent, so you should consider enforcing it ok "Container detected, consider host enforcing!" else - is_kernel_module_loaded "$KERNEL_OPTION" "$LOADED_MODULE_NAME" + is_kernel_module_loaded "$KERNEL_OPTION" "$MODULE_NAME" if [ "$FNRET" -eq 0 ]; then # 0 means true in bash, so it IS activated - crit "$LOADED_MODULE_NAME is loaded!" + crit "$MODULE_NAME is loaded!" warn "I wont unload the module, unload it manually or recompile the kernel if needed" fi