casper: fix profile overwriting.
This commit is contained in:
parent
959722e3f5
commit
d881dc94c2
3 changed files with 9 additions and 39 deletions
33
helpers/DATA/casper/35apparmor_browsers
Normal file
33
helpers/DATA/casper/35apparmor_browsers
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
#!/bin/sh
|
||||
|
||||
PREREQ=""
|
||||
DESCRIPTION="Enabling Abrowser apparmor profile..."
|
||||
|
||||
prereqs()
|
||||
{
|
||||
echo "$PREREQ"
|
||||
}
|
||||
|
||||
case $1 in
|
||||
# get pre-requisites
|
||||
prereqs)
|
||||
prereqs
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
|
||||
. /scripts/casper-functions
|
||||
|
||||
log_begin_msg "$DESCRIPTION"
|
||||
|
||||
cat << 'EOF' > /root/etc/rc.local
|
||||
#!/bin/sh
|
||||
# Enable apparmor profile during live session to allow Abrowser to create user namespaces
|
||||
BROWSERS="abrowser icecat"
|
||||
for browser in $BROWSERS; do
|
||||
[ -d /rofs ] && apparmor_parser -a /etc/apparmor.d/$browser
|
||||
done
|
||||
EOF
|
||||
chmod 755 /root/etc/rc.local
|
||||
|
||||
log_end_msg
|
||||
Loading…
Add table
Add a link
Reference in a new issue