cleanup and adding tools
This commit is contained in:
parent
2a83c56a51
commit
719176d79d
|
@ -2,7 +2,7 @@
|
|||
set -euo pipefail
|
||||
(
|
||||
exec bwrap \
|
||||
--ro-bind /usr/bin/ /usr/bin/ \
|
||||
--ro-bind /usr/bin /usr/bin/ \
|
||||
--ro-bind /usr/share /usr/share \
|
||||
--ro-bind /usr/lib /usr/lib \
|
||||
--ro-bind /usr/lib64 /usr/lib64 \
|
||||
|
@ -12,7 +12,6 @@ set -euo pipefail
|
|||
--symlink /usr/bin /sbin \
|
||||
--tmpfs /usr/lib/modules \
|
||||
--tmpfs /usr/lib/systemd \
|
||||
--tmpfs /usr/lib/gcc \
|
||||
--proc /proc \
|
||||
--dev /dev \
|
||||
--bind ~/ ~/ \
|
||||
|
@ -29,16 +28,10 @@ set -euo pipefail
|
|||
--tmpfs ~/.local \
|
||||
--tmpfs ~/.pki \
|
||||
--unsetenv MOZ_PLUGIN_PATH \
|
||||
--unsetenv XTERM_LOCALE \
|
||||
--unsetenv TERM \
|
||||
--unsetenv XTERM_VERSION \
|
||||
--unsetenv XTERM_SHELL \
|
||||
--unsetenv DBUS_SESSION_BUS_ADDRESS \
|
||||
--unsetenv XDG_RUNTIME_DIR \
|
||||
--unsetenv MAIL \
|
||||
--unsetenv XAUTHORITY \
|
||||
--setenv SHELL /bin/false \
|
||||
--setenv PATH /usr/bin \
|
||||
--setenv USER nobody \
|
||||
--unshare-all \
|
||||
--new-session \
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
set -euo pipefail
|
||||
(
|
||||
exec bwrap \
|
||||
--ro-bind /usr/bin/ /usr/bin/ \
|
||||
--ro-bind /usr/bin /usr/bin/ \
|
||||
--ro-bind /usr/share /usr/share \
|
||||
--ro-bind /usr/lib /usr/lib \
|
||||
--ro-bind /usr/lib64 /usr/lib64 \
|
||||
|
@ -12,7 +12,6 @@ set -euo pipefail
|
|||
--symlink /usr/bin /sbin \
|
||||
--tmpfs /usr/lib/modules \
|
||||
--tmpfs /usr/lib/systemd \
|
||||
--tmpfs /usr/lib/gcc \
|
||||
--proc /proc \
|
||||
--dev /dev \
|
||||
--bind ~/ ~/ \
|
||||
|
@ -29,16 +28,10 @@ set -euo pipefail
|
|||
--tmpfs ~/.local \
|
||||
--tmpfs ~/.pki \
|
||||
--unsetenv MOZ_PLUGIN_PATH \
|
||||
--unsetenv XTERM_LOCALE \
|
||||
--unsetenv TERM \
|
||||
--unsetenv XTERM_VERSION \
|
||||
--unsetenv XTERM_SHELL \
|
||||
--unsetenv DBUS_SESSION_BUS_ADDRESS \
|
||||
--unsetenv XDG_RUNTIME_DIR \
|
||||
--unsetenv MAIL \
|
||||
--unsetenv XAUTHORITY \
|
||||
--setenv SHELL /bin/false \
|
||||
--setenv PATH /usr/bin \
|
||||
--setenv USER nobody \
|
||||
--unshare-all \
|
||||
--new-session \
|
||||
|
|
|
@ -2,22 +2,19 @@
|
|||
set -euo pipefail
|
||||
(
|
||||
exec bwrap \
|
||||
--ro-bind /usr/bin/evince /usr/bin/evince \
|
||||
--ro-bind /usr/share/ /usr/share/ \
|
||||
--ro-bind /usr/bin /usr/bin/ \
|
||||
--ro-bind /usr/share /usr/share \
|
||||
--ro-bind /usr/lib /usr/lib \
|
||||
--ro-bind /usr/lib32 /usr/lib32 \
|
||||
--ro-bind /lib /lib \
|
||||
--ro-bind /lib64 /lib64 \
|
||||
--ro-bind /lib32 /lib32 \
|
||||
--ro-bind /libx32 /libx32 \
|
||||
--ro-bind /bin /bin \
|
||||
--ro-bind /sbin /sbin \
|
||||
--ro-bind /usr/lib64 /usr/lib64 \
|
||||
--symlink /usr/lib64 /lib64 \
|
||||
--symlink /usr/lib /lib \
|
||||
--symlink /usr/bin /bin \
|
||||
--symlink /usr/bin /sbin \
|
||||
--tmpfs /usr/lib/modules \
|
||||
--tmpfs /usr/lib/systemd \
|
||||
--proc /proc \
|
||||
--dev /dev \
|
||||
--ro-bind /tmp/.X11-unix /tmp/.X11-unix \
|
||||
--ro-bind /etc/fonts /etc/fonts \
|
||||
--bind ~/ ~/ \
|
||||
--ro-bind ~/.Xauthority ~/.Xauthority \
|
||||
--tmpfs ~/.gnupg \
|
||||
--tmpfs ~/.ssh \
|
||||
--tmpfs ~/.mutt \
|
||||
|
@ -30,18 +27,15 @@ set -euo pipefail
|
|||
--tmpfs ~/.cache \
|
||||
--tmpfs ~/.local \
|
||||
--tmpfs ~/.pki \
|
||||
--bind ~/.cache/fontconfig ~/.cache/fontconfig \
|
||||
--unsetenv MOZ_PLUGIN_PATH \
|
||||
--unsetenv XDG_RUNTIME_DIR \
|
||||
--unsetenv DBUS_SESSION_BUS_ADDRESS \
|
||||
--unsetenv XDG_RUNTIME_DIR \
|
||||
--unsetenv XAUTHORITY \
|
||||
--setenv SHELL /bin/false \
|
||||
--unshare-user-try \
|
||||
--unshare-pid \
|
||||
--unshare-net \
|
||||
--unshare-uts \
|
||||
--unshare-cgroup \
|
||||
--setenv USER nobody \
|
||||
--unshare-all \
|
||||
--new-session \
|
||||
--seccomp 10 \
|
||||
10< /usr/local/bin/seccomp_default_filter.bpf \
|
||||
/usr/bin/evince "$@"
|
||||
/usr/bin/atool "$@"
|
||||
)
|
|
@ -0,0 +1,41 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
(
|
||||
exec bwrap \
|
||||
--ro-bind /usr/bin /usr/bin/ \
|
||||
--ro-bind /usr/share /usr/share \
|
||||
--ro-bind /usr/lib /usr/lib \
|
||||
--ro-bind /usr/lib64 /usr/lib64 \
|
||||
--symlink /usr/lib64 /lib64 \
|
||||
--symlink /usr/lib /lib \
|
||||
--symlink /usr/bin /bin \
|
||||
--symlink /usr/bin /sbin \
|
||||
--tmpfs /usr/lib/modules \
|
||||
--tmpfs /usr/lib/systemd \
|
||||
--proc /proc \
|
||||
--dev /dev \
|
||||
--bind ~/ ~/ \
|
||||
--tmpfs ~/.gnupg \
|
||||
--tmpfs ~/.ssh \
|
||||
--tmpfs ~/.mutt \
|
||||
--tmpfs ~/.mozilla \
|
||||
--tmpfs ~/.thunderbird \
|
||||
--tmpfs ~/.mail \
|
||||
--tmpfs ~/.Mail \
|
||||
--tmpfs ~/.claws-mail \
|
||||
--tmpfs ~/.config \
|
||||
--tmpfs ~/.cache \
|
||||
--tmpfs ~/.local \
|
||||
--tmpfs ~/.pki \
|
||||
--unsetenv MOZ_PLUGIN_PATH \
|
||||
--unsetenv DBUS_SESSION_BUS_ADDRESS \
|
||||
--unsetenv XDG_RUNTIME_DIR \
|
||||
--unsetenv XAUTHORITY \
|
||||
--setenv SHELL /bin/false \
|
||||
--setenv USER nobody \
|
||||
--unshare-all \
|
||||
--new-session \
|
||||
--seccomp 10 \
|
||||
10< /usr/local/bin/seccomp_default_filter.bpf \
|
||||
/usr/bin/bzip2 "$@"
|
||||
)
|
|
@ -1,33 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
(
|
||||
exec bwrap \
|
||||
--ro-bind /usr/bin/ /usr/bin/ \
|
||||
--ro-bind /usr/share/ /usr/share/ \
|
||||
--ro-bind /usr/lib /usr/lib \
|
||||
--ro-bind /usr/lib32 /usr/lib32 \
|
||||
--ro-bind /lib /lib \
|
||||
--ro-bind /lib64 /lib64 \
|
||||
--ro-bind /lib32 /lib32 \
|
||||
--ro-bind /libx32 /libx32 \
|
||||
--ro-bind /bin /bin \
|
||||
--ro-bind /sbin /sbin \
|
||||
--proc /proc \
|
||||
--ro-bind /tmp/.X11-unix /tmp/.X11-unix \
|
||||
--ro-bind ~/.Xauthority /home/jail/.Xauthority \
|
||||
--chdir /home/jail \
|
||||
--unsetenv MOZ_PLUGIN_PATH \
|
||||
--unsetenv DBUS_SESSION_BUS_ADDRESS \
|
||||
--unsetenv XDG_RUNTIME_DIR \
|
||||
--setenv HOME /home/jail \
|
||||
--setenv XAUTHORITY /home/jail/.Xauthority \
|
||||
--setenv USER nobody \
|
||||
--unshare-all \
|
||||
--new-session \
|
||||
--seccomp 10 \
|
||||
10< /usr/local/bin/seccomp_default_filter.bpf \
|
||||
bash
|
||||
)
|
||||
|
||||
## --ro-bind "${@: -1}" /home/jail/"$(basename ${@: -1})" \
|
||||
## bash "$(basename ${@: -1})"
|
|
@ -1,35 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
(
|
||||
exec bwrap \
|
||||
--ro-bind /usr /usr \
|
||||
--ro-bind /lib /lib \
|
||||
--ro-bind /lib64 /lib64 \
|
||||
--ro-bind /bin /bin \
|
||||
--ro-bind /sbin /sbin \
|
||||
--ro-bind /etc /etc \
|
||||
--ro-bind /tmp/.X11-unix /tmp/.X11-unix \
|
||||
--bind /run /run \
|
||||
--proc /proc \
|
||||
--dev-bind /dev /dev \
|
||||
--bind ~/.mozilla /home/jail/.mozilla \
|
||||
--bind ~/.cache/mozilla /home/jail/.cache/mozilla \
|
||||
--bind ~/.cache/fontconfig /home/jail/.cache/fontconfig \
|
||||
--bind ~/.config/ibus /home/jail/.config/ibus \
|
||||
--bind ~/Downloads /home/jail/Downloads \
|
||||
--chdir /home/jail \
|
||||
--unsetenv DBUS_SESSION_BUS_ADDRESS \
|
||||
--setenv SHELL /bin/false \
|
||||
--setenv HOME /home/jail \
|
||||
--setenv USER nobody \
|
||||
--unshare-all \
|
||||
--share-net \
|
||||
--new-session \
|
||||
--seccomp 10 \
|
||||
10< /usr/local/bin/seccomp_default_filter.bpf \
|
||||
/usr/bin/firefox
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
|
@ -1,48 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
(
|
||||
exec bwrap \
|
||||
--ro-bind /usr/bin/ /usr/bin/ \
|
||||
--ro-bind /usr/share/ /usr/share/ \
|
||||
--ro-bind /usr/lib /usr/lib \
|
||||
--ro-bind /usr/lib32 /usr/lib32 \
|
||||
--ro-bind /lib /lib \
|
||||
--ro-bind /lib64 /lib64 \
|
||||
--ro-bind /lib32 /lib32 \
|
||||
--ro-bind /libx32 /libx32 \
|
||||
--ro-bind /bin /bin \
|
||||
--ro-bind /sbin /sbin \
|
||||
--proc /proc \
|
||||
--dev /dev \
|
||||
--ro-bind /tmp/.X11-unix /tmp/.X11-unix \
|
||||
--ro-bind /etc /etc \
|
||||
--ro-bind /sys /sys \
|
||||
--bind /run/user/`id -u`/dconf /run/user/`id -u`/dconf \
|
||||
--bind ~/ ~/ \
|
||||
--tmpfs ~/.gnupg \
|
||||
--tmpfs ~/.ssh \
|
||||
--tmpfs ~/.mutt \
|
||||
--tmpfs ~/.mozilla \
|
||||
--tmpfs ~/.thunderbird \
|
||||
--tmpfs ~/.mail \
|
||||
--tmpfs ~/.Mail \
|
||||
--tmpfs ~/.claws-mail \
|
||||
--tmpfs ~/.config \
|
||||
--tmpfs ~/.cache \
|
||||
--tmpfs ~/.local \
|
||||
--tmpfs ~/.pki \
|
||||
--bind ~/.cache/fontconfig ~/.cache/fontconfig \
|
||||
--ro-bind ~/.Xauthority ~/.Xauthority \
|
||||
--bind ~/.config/libreoffice ~/.config/libreoffice \
|
||||
--unsetenv MOZ_PLUGIN_PATH \
|
||||
--unsetenv XDG_RUNTIME_DIR \
|
||||
--unshare-user-try \
|
||||
--unshare-pid \
|
||||
--unshare-net \
|
||||
--unshare-uts \
|
||||
--unshare-cgroup \
|
||||
--new-session \
|
||||
--seccomp 10 \
|
||||
10< /usr/local/bin/seccomp_default_filter.bpf \
|
||||
/usr/bin/libreoffice "$@"
|
||||
)
|
|
@ -1,29 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
(
|
||||
exec bwrap \
|
||||
--ro-bind /usr/bin/mupdf /usr/bin/mupdf \
|
||||
--ro-bind /usr/share /usr/share \
|
||||
--ro-bind /usr/lib /usr/lib \
|
||||
--ro-bind /lib /lib \
|
||||
--ro-bind /lib64 /lib64 \
|
||||
--ro-bind /bin /bin \
|
||||
--proc /proc \
|
||||
--ro-bind /tmp/.X11-unix /tmp/.X11-unix \
|
||||
--ro-bind /etc/fonts /etc/fonts \
|
||||
--ro-bind ~/.Xauthority /home/jail/.Xauthority \
|
||||
--ro-bind "${@: -1}" /home/jail/"$(basename ${@: -1})" \
|
||||
--chdir /home/jail \
|
||||
--unsetenv MOZ_PLUGIN_PATH \
|
||||
--unsetenv DBUS_SESSION_BUS_ADDRESS \
|
||||
--unsetenv XDG_RUNTIME_DIR \
|
||||
--setenv SHELL /bin/false \
|
||||
--setenv HOME /home/jail \
|
||||
--setenv XAUTHORITY /home/jail/.Xauthority \
|
||||
--setenv USER nobody \
|
||||
--unshare-all \
|
||||
--new-session \
|
||||
--seccomp 10 \
|
||||
10< /usr/local/bin/seccomp_default_filter.bpf \
|
||||
/usr/bin/mupdf "$(basename ${@: -1})" &>/dev/null
|
||||
)
|
Binary file not shown.
|
@ -1,71 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
(
|
||||
exec bwrap \
|
||||
--ro-bind /usr/bin/ /usr/bin/ \
|
||||
--ro-bind /usr/share/ /usr/share/ \
|
||||
--ro-bind /usr/lib /usr/lib \
|
||||
--ro-bind /lib /lib \
|
||||
--ro-bind /lib64 /lib64 \
|
||||
--ro-bind /bin /bin \
|
||||
--ro-bind /sbin /sbin \
|
||||
--proc /proc \
|
||||
--dev /dev \
|
||||
--ro-bind /tmp/.X11-unix /tmp/.X11-unix \
|
||||
--ro-bind /etc/passwd /etc/passwd \
|
||||
--ro-bind /etc/group /etc/group \
|
||||
--ro-bind /etc/hostname /etc/hostname \
|
||||
--ro-bind /etc/hosts /etc/hosts \
|
||||
--ro-bind /etc/localtime /etc/localtime \
|
||||
--ro-bind /etc/nsswitch.conf /etc/nsswitch.conf \
|
||||
--ro-bind /etc/resolv.conf /etc/resolv.conf \
|
||||
--ro-bind /etc/xdg /etc/xdg \
|
||||
--ro-bind /etc/gtk-2.0 /etc/gtk-2.0 \
|
||||
--ro-bind /etc/gtk-3.0 /etc/gtk-3.0 \
|
||||
--ro-bind /etc/X11 /etc/X11 \
|
||||
--ro-bind /etc/fonts /etc/fonts \
|
||||
--ro-bind /etc/mime.types /etc/mime.types \
|
||||
--ro-bind /etc/pulse /etc/pulse \
|
||||
--tmpfs /run \
|
||||
--ro-bind ~/.Xauthority /home/jail/.Xauthority \
|
||||
--bind ~/.mozilla /home/jail/.mozilla \
|
||||
--bind ~/.cache/mozilla /home/jail/.cache/mozilla \
|
||||
--bind ~/.cache/thunderbird /home/jail/.cache/thunderbird \
|
||||
--bind ~/.thunderbird /home/jail/.thunderbird \
|
||||
--bind ~/Downloads /home/jail/Downloads \
|
||||
--chdir /home/jail \
|
||||
--unsetenv XTERM_LOCALE \
|
||||
--unsetenv TERM \
|
||||
--unsetenv XTERM_VERSION \
|
||||
--unsetenv XTERM_SHELL \
|
||||
--unsetenv DBUS_SESSION_BUS_ADDRESS \
|
||||
--unsetenv XDG_RUNTIME_DIR \
|
||||
--unsetenv MAIL \
|
||||
--setenv SHELL /bin/false \
|
||||
--setenv HOME /home/jail \
|
||||
--setenv XAUTHORITY /home/jail/.Xauthority \
|
||||
--setenv USER nobody \
|
||||
--setenv LOGNAME nobody \
|
||||
--unshare-user-try \
|
||||
--unshare-pid \
|
||||
--unshare-uts \
|
||||
--unshare-cgroup \
|
||||
--new-session \
|
||||
--seccomp 10 \
|
||||
10< /usr/local/bin/seccomp_default_filter.bpf \
|
||||
/usr/bin/thunderbird
|
||||
)
|
||||
|
||||
# todo:
|
||||
|
||||
# --ro-bind /usr/share/locale /usr/share/locale \
|
||||
# --ro-bind /usr/share/X11 /usr/share/X11 \
|
||||
# --ro-bind /usr/share/gtk-3.0 /usr/share/gtk-3.0 \
|
||||
# --ro-bind /usr/share/fonts /usr/share/fonts \
|
||||
# --ro-bind /usr/share/ca-certificates /usr/share/ca-certificates \
|
||||
# --ro-bind /usr/share/icons /usr/share/icons \
|
||||
# --ro-bind /usr/share/pixmaps /usr/share/pixmaps \
|
||||
# --ro-bind /usr/share/mime /usr/share/mime \
|
||||
# --ro-bind /usr/share/applications /usr/share/applications \
|
||||
# --ro-bind /usr/share/glib-2.0 /usr/share/glib-2.0 \
|
||||
# --bind /var/cache/fontconfig
|
|
@ -4,7 +4,7 @@ set -euo pipefail
|
|||
exec bwrap \
|
||||
--ro-bind /usr/bin/apulse /usr/bin/apulse \
|
||||
--ro-bind /usr/bin/sh /usr/bin/sh \
|
||||
--ro-bind /usr/share/ /usr/share/ \
|
||||
--ro-bind /usr/share /usr/share/ \
|
||||
--ro-bind /usr/lib /usr/lib \
|
||||
--ro-bind /usr/lib64 /usr/lib64 \
|
||||
--symlink /usr/lib64 /lib64 \
|
||||
|
|
|
@ -4,7 +4,7 @@ set -euo pipefail
|
|||
exec bwrap \
|
||||
--ro-bind /usr/bin/apulse /usr/bin/apulse \
|
||||
--ro-bind /usr/bin/sh /usr/bin/sh \
|
||||
--ro-bind /usr/share/ /usr/share/ \
|
||||
--ro-bind /usr/share /usr/share/ \
|
||||
--ro-bind /usr/lib /usr/lib \
|
||||
--ro-bind /usr/lib64 /usr/lib64 \
|
||||
--symlink /usr/lib64 /lib64 \
|
||||
|
|
|
@ -2,16 +2,16 @@
|
|||
set -euo pipefail
|
||||
(
|
||||
exec bwrap \
|
||||
--ro-bind /usr/bin/ /usr/bin/ \
|
||||
--ro-bind /usr/bin /usr/bin/ \
|
||||
--ro-bind /usr/share /usr/share \
|
||||
--ro-bind /usr/lib /usr/lib \
|
||||
--ro-bind /usr/lib32 /usr/lib32 \
|
||||
--ro-bind /lib /lib \
|
||||
--ro-bind /lib64 /lib64 \
|
||||
--ro-bind /lib32 /lib32 \
|
||||
--ro-bind /libx32 /libx32 \
|
||||
--ro-bind /bin /bin \
|
||||
--ro-bind /bin /sbin \
|
||||
--ro-bind /usr/lib64 /usr/lib64 \
|
||||
--symlink /usr/lib64 /lib64 \
|
||||
--symlink /usr/lib /lib \
|
||||
--symlink /usr/bin /bin \
|
||||
--symlink /usr/bin /sbin \
|
||||
--tmpfs /usr/lib/modules \
|
||||
--tmpfs /usr/lib/systemd \
|
||||
--proc /proc \
|
||||
--dev /dev \
|
||||
--bind ~/ ~/ \
|
||||
|
@ -37,5 +37,5 @@ set -euo pipefail
|
|||
--new-session \
|
||||
--seccomp 10 \
|
||||
10< /usr/local/bin/seccomp_default_filter.bpf \
|
||||
/usr/bin/7z "$@"
|
||||
/usr/bin/xz "$@"
|
||||
)
|
|
@ -2,7 +2,7 @@
|
|||
set -euo pipefail
|
||||
(
|
||||
exec bwrap \
|
||||
--ro-bind /usr/bin/ /usr/bin/ \
|
||||
--ro-bind /usr/bin /usr/bin/ \
|
||||
--ro-bind /usr/share /usr/share \
|
||||
--ro-bind /usr/lib /usr/lib \
|
||||
--ro-bind /usr/lib64 /usr/lib64 \
|
||||
|
|
|
@ -0,0 +1,41 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
(
|
||||
exec bwrap \
|
||||
--ro-bind /usr/bin /usr/bin/ \
|
||||
--ro-bind /usr/share /usr/share \
|
||||
--ro-bind /usr/lib /usr/lib \
|
||||
--ro-bind /usr/lib64 /usr/lib64 \
|
||||
--symlink /usr/lib64 /lib64 \
|
||||
--symlink /usr/lib /lib \
|
||||
--symlink /usr/bin /bin \
|
||||
--symlink /usr/bin /sbin \
|
||||
--tmpfs /usr/lib/modules \
|
||||
--tmpfs /usr/lib/systemd \
|
||||
--proc /proc \
|
||||
--dev /dev \
|
||||
--bind ~/ ~/ \
|
||||
--tmpfs ~/.gnupg \
|
||||
--tmpfs ~/.ssh \
|
||||
--tmpfs ~/.mutt \
|
||||
--tmpfs ~/.mozilla \
|
||||
--tmpfs ~/.thunderbird \
|
||||
--tmpfs ~/.mail \
|
||||
--tmpfs ~/.Mail \
|
||||
--tmpfs ~/.claws-mail \
|
||||
--tmpfs ~/.config \
|
||||
--tmpfs ~/.cache \
|
||||
--tmpfs ~/.local \
|
||||
--tmpfs ~/.pki \
|
||||
--unsetenv MOZ_PLUGIN_PATH \
|
||||
--unsetenv DBUS_SESSION_BUS_ADDRESS \
|
||||
--unsetenv XDG_RUNTIME_DIR \
|
||||
--unsetenv XAUTHORITY \
|
||||
--setenv SHELL /bin/false \
|
||||
--setenv USER nobody \
|
||||
--unshare-all \
|
||||
--new-session \
|
||||
--seccomp 10 \
|
||||
10< /usr/local/bin/seccomp_default_filter.bpf \
|
||||
/usr/bin/tar "$@"
|
||||
)
|
|
@ -2,8 +2,8 @@
|
|||
set -euo pipefail
|
||||
(
|
||||
exec bwrap \
|
||||
--ro-bind /usr/bin/ /usr/bin/ \
|
||||
--ro-bind /usr/share/ /usr/share/ \
|
||||
--ro-bind /usr/bin /usr/bin/ \
|
||||
--ro-bind /usr/share /usr/share/ \
|
||||
--ro-bind /usr/lib /usr/lib \
|
||||
--ro-bind /usr/lib64 /usr/lib64 \
|
||||
--symlink /usr/lib64 /lib64 \
|
||||
|
|
|
@ -2,16 +2,16 @@
|
|||
set -euo pipefail
|
||||
(
|
||||
exec bwrap \
|
||||
--ro-bind /usr/bin/ /usr/bin/ \
|
||||
--ro-bind /usr/bin /usr/bin/ \
|
||||
--ro-bind /usr/share /usr/share \
|
||||
--ro-bind /usr/lib /usr/lib \
|
||||
--ro-bind /usr/lib32 /usr/lib32 \
|
||||
--ro-bind /lib /lib \
|
||||
--ro-bind /lib64 /lib64 \
|
||||
--ro-bind /lib32 /lib32 \
|
||||
--ro-bind /libx32 /libx32 \
|
||||
--ro-bind /bin /bin \
|
||||
--ro-bind /bin /sbin \
|
||||
--ro-bind /usr/lib64 /usr/lib64 \
|
||||
--symlink /usr/lib64 /lib64 \
|
||||
--symlink /usr/lib /lib \
|
||||
--symlink /usr/bin /bin \
|
||||
--symlink /usr/bin /sbin \
|
||||
--tmpfs /usr/lib/modules \
|
||||
--tmpfs /usr/lib/systemd \
|
||||
--proc /proc \
|
||||
--dev /dev \
|
||||
--bind ~/ ~/ \
|
||||
|
@ -37,5 +37,5 @@ set -euo pipefail
|
|||
--new-session \
|
||||
--seccomp 10 \
|
||||
10< /usr/local/bin/seccomp_default_filter.bpf \
|
||||
/usr/bin/7za "$@"
|
||||
/usr/bin/xz "$@"
|
||||
)
|
Loading…
Reference in New Issue