Hi,
I am using jailkit-2.17 in debian wheezy, and seeing the following:
When I try to do something with grep in a jailed session, I get back
bash: /bin/grep: No such file or directory
# ldd from outside the jail:
$ ldd /bin/grep
/usr/lib/arm-linux-gnueabihf/libcofi_rpi.so (0xb6f90000)
libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0xb6f7a000)
libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0xb6f52000)
libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6e23000)
/lib/arm-linux-gnueabihf/ld-linux.so.3 => /lib/ld-linux-armhf.so.3 (0xb6f9d000)
# ldd from inside the jail:
$ ldd /bin/grep
libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0xb6f74000)
libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0xb6f4c000)
libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6e1d000)
/lib/arm-linux-gnueabihf/ld-linux.so.3 => /lib/ld-linux-armhf.so.3 (0xb6f82000)
The line for libcofi_rpi.so is missing from the ldd-inside, but the file (/usr/lib/arm-linux-gnueabihf/libcofi_rpi.so) is inside the jail!
When I look at strace output (strace running outside the jail watching jailed processes), I see that the execve of /bin/grep fails with ENOENT, but the file for /bin/grep is there.
Any ideas?
Thanks - Tzvi.