aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar glitsj16 <glitsj16@users.noreply.github.com>2020-06-12 10:13:35 +0000
committerLibravatar GitHub <noreply@github.com>2020-06-12 10:13:35 +0000
commit3490ba4fe24395b916c2b70237e96bb8040e151b (patch)
tree316302f00d560dad4887ae16a39ac4ec52dce6c5
parentmmapfail.sh fix (diff)
downloadfirejail-3490ba4fe24395b916c2b70237e96bb8040e151b.tar.gz
firejail-3490ba4fe24395b916c2b70237e96bb8040e151b.tar.zst
firejail-3490ba4fe24395b916c2b70237e96bb8040e151b.zip
enable apparmor support by default in update_deb.sh (#3450)
* 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.
-rwxr-xr-xcontrib/update_deb.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/contrib/update_deb.sh b/contrib/update_deb.sh
index d417a09ea..1fceca788 100755
--- a/contrib/update_deb.sh
+++ b/contrib/update_deb.sh
@@ -6,11 +6,19 @@
6# Purpose: Fetch, compile, and install firejail from GitHub source. For 6# Purpose: Fetch, compile, and install firejail from GitHub source. For
7# Debian-based distros only (Ubuntu, Mint, etc). 7# Debian-based distros only (Ubuntu, Mint, etc).
8set -e 8set -e
9
9git clone --depth=1 https://github.com/netblue30/firejail.git 10git clone --depth=1 https://github.com/netblue30/firejail.git
10cd firejail 11cd firejail
11./configure --prefix=/usr 12./configure --enable-apparmor --prefix=/usr
13
14# Fix https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=916920
15sed -i \
16 -e "s/# cgroup .*/cgroup no/" \
17 -e "s/# restricted-network .*/restricted-network yes/" \
18 etc/firejail.config
19
12make deb 20make deb
13sudo dpkg -i firejail*.deb 21sudo dpkg -i firejail*.deb
14echo "Firejail was updated!" 22echo "Firejail updated."
15cd .. 23cd ..
16rm -rf firejail 24rm -rf firejail