Guest User

Untitled

a guest
Jan 21st, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. [~/chroot-test]$ ls
  2. test.c
  3. [~/chroot-test]$ cat test.c|wc -c
  4. 262
  5. [~/chroot-test]$ gcc test.c -static
  6. test.c: In function ‘main’:
  7. test.c:4:76: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default]
  8. test.c:8:43: warning: incompatible implicit declaration of built-in function ‘execl’ [enabled by default]
  9. [~/chroot-test]$ sudo chroot ~/chroot-test ./a.out
  10. [root@bestia /]# ls
  11. bin boot data dev etc home lib lib64 lost+found media mnt opt proc root run sbin srv sys tmp usr var
  12. [root@bestia /]# exit
  13. logout
  14. [~/chroot-test]$
Add Comment
Please, Sign In to add comment