casper: add & enable icecat apparmor profile
This commit is contained in:
parent
de8087afd0
commit
959722e3f5
2 changed files with 38 additions and 5 deletions
30
helpers/DATA/casper/36apparmor_icecat
Normal file
30
helpers/DATA/casper/36apparmor_icecat
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
#!/bin/sh
|
||||
|
||||
PREREQ=""
|
||||
DESCRIPTION="Enabling IceCat 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 IceCat to create user namespaces
|
||||
[ -d /rofs ] && apparmor_parser -a /etc/apparmor.d/icecat
|
||||
EOF
|
||||
chmod 755 /root/etc/rc.local
|
||||
|
||||
log_end_msg
|
||||
Loading…
Add table
Add a link
Reference in a new issue