Skip to content

Commit

Permalink
enable apparmor support by default in update_deb.sh (#3450)
Browse files Browse the repository at this point in the history
* enable apparmor support by default in update_deb.sh

* Add fix for Debian bug 916920

This should bring the script in sync with packages installed from PPA.
  • Loading branch information
glitsj16 authored Jun 12, 2020
1 parent 9c138be commit 3490ba4
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions contrib/update_deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,19 @@
# Purpose: Fetch, compile, and install firejail from GitHub source. For
# Debian-based distros only (Ubuntu, Mint, etc).
set -e

git clone --depth=1 https://github.com/netblue30/firejail.git
cd firejail
./configure --prefix=/usr
./configure --enable-apparmor --prefix=/usr

# Fix https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=916920
sed -i \
-e "s/# cgroup .*/cgroup no/" \
-e "s/# restricted-network .*/restricted-network yes/" \
etc/firejail.config

make deb
sudo dpkg -i firejail*.deb
echo "Firejail was updated!"
echo "Firejail updated."
cd ..
rm -rf firejail

0 comments on commit 3490ba4

Please sign in to comment.