Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [~/chroot-test]$ ls
- test.c
- [~/chroot-test]$ cat test.c|wc -c
- 262
- [~/chroot-test]$ gcc test.c -static
- test.c: In function ‘main’:
- test.c:4:76: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default]
- test.c:8:43: warning: incompatible implicit declaration of built-in function ‘execl’ [enabled by default]
- [~/chroot-test]$ sudo chroot ~/chroot-test ./a.out
- [root@bestia /]# ls
- bin boot data dev etc home lib lib64 lost+found media mnt opt proc root run sbin srv sys tmp usr var
- [root@bestia /]# exit
- logout
- [~/chroot-test]$
Add Comment
Please, Sign In to add comment