diff options
author | glitsj16 <glitsj16@users.noreply.github.com> | 2020-06-12 10:13:35 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-12 10:13:35 +0000 |
commit | 3490ba4fe24395b916c2b70237e96bb8040e151b (patch) | |
tree | 316302f00d560dad4887ae16a39ac4ec52dce6c5 | |
parent | mmapfail.sh fix (diff) | |
download | firejail-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-x | contrib/update_deb.sh | 12 |
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). |
8 | set -e | 8 | set -e |
9 | |||
9 | git clone --depth=1 https://github.com/netblue30/firejail.git | 10 | git clone --depth=1 https://github.com/netblue30/firejail.git |
10 | cd firejail | 11 | cd firejail |
11 | ./configure --prefix=/usr | 12 | ./configure --enable-apparmor --prefix=/usr |
13 | |||
14 | # Fix https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=916920 | ||
15 | sed -i \ | ||
16 | -e "s/# cgroup .*/cgroup no/" \ | ||
17 | -e "s/# restricted-network .*/restricted-network yes/" \ | ||
18 | etc/firejail.config | ||
19 | |||
12 | make deb | 20 | make deb |
13 | sudo dpkg -i firejail*.deb | 21 | sudo dpkg -i firejail*.deb |
14 | echo "Firejail was updated!" | 22 | echo "Firejail updated." |
15 | cd .. | 23 | cd .. |
16 | rm -rf firejail | 24 | rm -rf firejail |