From bc5809f92ea3fde1c29ca4fff1e3cccdaad27225 Mon Sep 17 00:00:00 2001 From: "kevin.tanguy" Date: Thu, 21 Feb 2019 11:15:48 +0100 Subject: [PATCH] FIX CONFIG_AUDIT test --- bin/hardening/8.0_enable_auditd_kernel.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/hardening/8.0_enable_auditd_kernel.sh b/bin/hardening/8.0_enable_auditd_kernel.sh index 8df3328..50201cd 100755 --- a/bin/hardening/8.0_enable_auditd_kernel.sh +++ b/bin/hardening/8.0_enable_auditd_kernel.sh @@ -21,7 +21,7 @@ KERNEL_OPTION="CONFIG_AUDIT" # This function will be called if the script status is on enabled / audit mode audit () { - is_kernel_option_enabled "^$KERNEL_OPTION=" + is_kernel_option_enabled $KERNEL_OPTION if [ $FNRET = 0 ]; then # 0 means true in bash, so it IS activated ok "$KERNEL_OPTION is enabled" else @@ -32,7 +32,7 @@ audit () { # This function will be called if the script status is on enabled mode apply () { - is_kernel_option_enabled "^$KERNEL_OPTION=" + is_kernel_option_enabled $KERNEL_OPTION if [ $FNRET = 0 ]; then # 0 means true in bash, so it IS activated ok "$KERNEL_OPTION is enabled" else