Open morris821028 opened 8 years ago
root@ubuntu:/home/butler# gcc hello.c root@ubuntu:/home/butler# cp a.out /sandbox/sandbox/app/ root@ubuntu:/home/butler# ./sandbox 1 16777216 ../app/a.out sandbox: sandbox.c:100: do_slave: Assertion `execvp(argv[0],argv)!=-1&&0' failed. root@ubuntu:/home/butler# /sandbox/sandbox/app/a.out Hello, world root@ubuntu:/home/butler# ldd /sandbox/sandbox/app/a.out linux-vdso.so.1 => (0x00007ffef41f5000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f877d403000) /lib64/ld-linux-x86-64.so.2 (0x0000562fc9991000) root@ubuntu:/home/butler# chroot /sandbox/ chroot: failed to run command ‘/bin/bash’: No such file or directory
mount 失敗,請執行 script 下的 ./mount
./mount
mount 失敗,請執行 script 下的
./mount