summaryrefslogtreecommitdiff
path: root/pcr/apparmor/apparmor_unload.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/apparmor/apparmor_unload.sh')
-rw-r--r--pcr/apparmor/apparmor_unload.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/pcr/apparmor/apparmor_unload.sh b/pcr/apparmor/apparmor_unload.sh
index de13938ab..f2d987dc2 100644
--- a/pcr/apparmor/apparmor_unload.sh
+++ b/pcr/apparmor/apparmor_unload.sh
@@ -2,7 +2,4 @@
aa_profiles='/etc/apparmor.d/'
aa_log='/var/log/apparmor.init.log'
-PROFILES=`find "$aa_profiles" -maxdepth 1 -type f`
-for profile in $PROFILES; do
- apparmor_parser -R "$profile" 2>> "$aa_log"
-done
+find "$aa_profiles" -maxdepth 1 -type f -exec /usr/bin/apparmor_parser -R {} \; 2>> "$aa_log"