jailkit-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Jailkit-users] problems running commands, differing ldd output


From: Tzvi Edelman
Subject: [Jailkit-users] problems running commands, differing ldd output
Date: Sun, 27 Apr 2014 01:50:16 +0300

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.
--
Tzvi Edelman cell:+972-50-849-8805  <address@hidden> H.323:tevid.no-ip.biz

reply via email to

[Prev in Thread] Current Thread [Next in Thread]