From 62ba4d10a4b654b4dddc2bd01f6b74c8e15ff5c3 Mon Sep 17 00:00:00 2001 From: probonopd Date: Sat, 18 Jan 2020 08:22:19 +0000 Subject: [PATCH] Revert to old filejail, can it do screenshots again? --- code/worker.sh | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/code/worker.sh b/code/worker.sh index 73bb2021..f2f5a5aa 100644 --- a/code/worker.sh +++ b/code/worker.sh @@ -210,15 +210,18 @@ TERMINAL=false grep -r Terminal=true "${APPDIR}"/*.desktop && TERMINAL=true echo "TERMINAL: $TERMINAL" +# "Install" Firejail +wget -c -q "https://github.com/AppImage/AppImageHub/releases/download/deps/firejail.tar.gz" ; sudo tar xf firejail.tar.gz -C / +sudo chown root:root /usr/bin/firejail ; sudo chmod u+s /usr/bin/firejail # suid # The simplest and most straightforward way to get the most recent version # of Firejail running on a less than recent OS; don't do this at home kids -FILE=$(wget -q "http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/" -O - | grep musl-1 | head -n 1 | cut -d '"' -f 2) -wget -c "http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/$FILE" -FILE=$(wget -q "http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/" -O - | grep firejail-0 | head -n 1 | cut -d '"' -f 2) -wget -c "http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/$FILE" -sudo tar xf musl-*.apk -C / 2>/dev/null -sudo tar xf firejail-*.apk -C / 2>/dev/null -sudo chown root:root /usr/bin/firejail ; sudo chmod u+s /usr/bin/firejail # suid +# FILE=$(wget -q "http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/" -O - | grep musl-1 | head -n 1 | cut -d '"' -f 2) +# wget -c "http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/$FILE" +# FILE=$(wget -q "http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/" -O - | grep firejail-0 | head -n 1 | cut -d '"' -f 2) +# wget -c "http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/$FILE" +# sudo tar xf musl-*.apk -C / 2>/dev/null +# sudo tar xf firejail-*.apk -C / 2>/dev/null +# sudo chown root:root /usr/bin/firejail ; sudo chmod u+s /usr/bin/firejail # suid echo "" echo "==========================================="