Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set -uo pipefail
- (exec bwrap --ro-bind /usr /usr \
- --ro-bind /lib /lib \
- --ro-bind /lib64 /lib64 \
- --ro-bind /bin /bin \
- --dir /tmp \
- --proc /proc \
- --dev /dev \
- --ro-bind /etc/resolv.conf /etc/resolv.conf \
- --chdir / \
- --unshare-pid \
- --dir /run/user/$(id -u) \
- --setenv XDG_RUNTIME_DIR "/run/user/`id -u`" \
- --file 11 /etc/passwd \
- --file 12 /etc/group \
- /bin/sh) \
- 11< <(getent passwd $UID 65534) \
- 12< <(getent group $(id -g) 65534)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement