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 "==========================================="