Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. set -uo pipefail
  2. (exec bwrap --ro-bind /usr /usr \
  3. --ro-bind /lib /lib \
  4. --ro-bind /lib64 /lib64 \
  5. --ro-bind /bin /bin \
  6. --dir /tmp \
  7. --proc /proc \
  8. --dev /dev \
  9. --ro-bind /etc/resolv.conf /etc/resolv.conf \
  10. --chdir / \
  11. --unshare-pid \
  12. --dir /run/user/$(id -u) \
  13. --setenv XDG_RUNTIME_DIR "/run/user/`id -u`" \
  14. --file 11 /etc/passwd \
  15. --file 12 /etc/group \
  16. /bin/sh) \
  17. 11< <(getent passwd $UID 65534) \
  18. 12< <(getent group $(id -g) 65534)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement