From bc149b7030a4daa819ea91ea39848fc6233f4310 Mon Sep 17 00:00:00 2001 From: Mark Bolwell Date: Mon, 4 Nov 2024 12:06:12 +0000 Subject: [PATCH] fixed typo thanks to #34 @Rafouf69 Signed-off-by: Mark Bolwell --- section_1/cis_1.6/cis_1.6.1.3.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/section_1/cis_1.6/cis_1.6.1.3.yml b/section_1/cis_1.6/cis_1.6.1.3.yml index e6e21fb..0d003fc 100644 --- a/section_1/cis_1.6/cis_1.6.1.3.yml +++ b/section_1/cis_1.6/cis_1.6.1.3.yml @@ -5,7 +5,7 @@ command: apparmor_enf_or_comp: title: 1.6.1.3 | Ensure all AppArmor Profiles are in enforce or complain mode | profile - exec: LOADED=`apparmor_status | grep 'profiles are loaded' | awk '{print $1}'` && ENFORCE=`apparmor_status | grep 'profiles are in enforce mode.' | awk '{print $1}'` && COMPLAIN=`apparmor_status | grep 'profiles are in complain mode.' | awk '{print $1}'` && if [ $((LOADED + COMPLAIN)) != "$ENFORCE" ]; then echo "Profiles Error";fi + exec: LOADED=`apparmor_status | grep 'profiles are loaded' | awk '{print $1}'` && ENFORCE=`apparmor_status | grep 'profiles are in enforce mode.' | awk '{print $1}'` && COMPLAIN=`apparmor_status | grep 'profiles are in complain mode.' | awk '{print $1}'` && if [ $((ENFORCE + COMPLAIN)) != "$LOADED " ]; then echo "Profiles Error";fi exit-status: 0 stdout: - '!/Profiles Error/'