Guest User

Untitled

a guest
Jul 18th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. $ unshare -r -n ls
  2. a.txt b.txt
  3.  
  4. $ unshare -r -n curl unix.stackexchange.com
  5. curl: (6) Could not resolve host: unix.stackexchange.com
  6.  
  7. $ /bin/sh -c 'echo 1 > /sys/unsharethis; curl unix.stackexchange.com'
  8.  
  9. open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
  10. fstat(3, {st_mode=S_IFREG|0644, st_size=4759040, ...}) = 0
  11. mmap(NULL, 4759040, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f7ec6968000
  12. close(3) = 0
  13. unshare(CLONE_NEWUSER|CLONE_NEWNET) = 0
  14. open("/proc/self/setgroups", O_WRONLY) = 3
  15. write(3, "deny", 4) = 4
Add Comment
Please, Sign In to add comment