From ee9eac85501d956045b2e06db33d365444b43af5 Mon Sep 17 00:00:00 2001 From: Samson-W Date: Thu, 18 Apr 2019 23:10:53 +0800 Subject: [PATCH] Set MAC default to apparmor. --- bin/hardening/8.1.7_record_mac_edit.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/hardening/8.1.7_record_mac_edit.sh b/bin/hardening/8.1.7_record_mac_edit.sh index eab2a51..dac04bf 100755 --- a/bin/hardening/8.1.7_record_mac_edit.sh +++ b/bin/hardening/8.1.7_record_mac_edit.sh @@ -26,6 +26,8 @@ FILE='/etc/audit/rules.d/audit.rules' # This function will be called if the script status is on enabled / audit mode audit () { + # Set default to apparmor + AUDIT_PARAMS=$AA_AUDIT_PARAMS # define custom IFS and save default one d_IFS=$IFS IFS=$'\n'