summaryrefslogtreecommitdiff
path: root/pcr/apparmor/apparmor_load.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/apparmor/apparmor_load.sh')
-rw-r--r--pcr/apparmor/apparmor_load.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/pcr/apparmor/apparmor_load.sh b/pcr/apparmor/apparmor_load.sh
new file mode 100644
index 000000000..30ce04086
--- /dev/null
+++ b/pcr/apparmor/apparmor_load.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+aa_profiles='/etc/apparmor.d/'
+aa_log='/var/log/apparmor.init.log'
+/usr/bin/apparmor_parser -r $(find "$aa_profiles" -maxdepth 1 -type f) 2>> "$aa_log"