summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 15:11:48 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:31:05 +0100
commit95a72c82ab85be5e582b7ac21239165bce21e179 (patch)
tree7a68ddc6da02c8a8f392a8267a6c27160589fe20 /scripts
parentba92d70df7c43aad50119ee457e4f0a8a48523b6 (diff)
downloadlive-boot-95a72c82ab85be5e582b7ac21239165bce21e179.tar.gz
live-boot-95a72c82ab85be5e582b7ac21239165bce21e179.zip
Merging casper 1.101.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/live-bottom/42disable_cups_apparmor29
1 files changed, 29 insertions, 0 deletions
diff --git a/scripts/live-bottom/42disable_cups_apparmor b/scripts/live-bottom/42disable_cups_apparmor
new file mode 100644
index 0000000..4a53444
--- /dev/null
+++ b/scripts/live-bottom/42disable_cups_apparmor
@@ -0,0 +1,29 @@
+#!/bin/sh
+# workaround for AppArmor bug #131976
+
+PREREQ=""
+DESCRIPTION="Disabling AppArmor profile for Cups..."
+
+. /scripts/casper-functions
+
+prereqs()
+{
+ echo "$PREREQ"
+}
+
+case $1 in
+# get pre-requisites
+prereqs)
+ prereqs
+ exit 0
+ ;;
+esac
+
+log_begin_msg "$DESCRIPTION"
+
+PROFILE=/root/etc/apparmor.d/usr.sbin.cupsd
+if [ -e "$PROFILE" ]; then
+ sed -i '/{/ s/{/flags=(complain) {/' $PROFILE
+fi
+
+log_end_msg