|
From: | Martin |
Subject: | Re: [Jailkit-users] debian x64 probably bash-library related problem |
Date: | Sat, 09 Apr 2011 02:23:57 +0200 |
User-agent: | Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9 |
i forgot file command in previous mail, so here it is: inside jail logged as jailer user: address@hidden:/home/ac016$ file ./i686 /etc/magic, 4: Warning: using regular magic file `/usr/share/misc/magic' ./i686: data outside jail: address@hidden:/home/jail/home/ac016# file ./i686./i686: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.4.3, not stripped
Thanks, Martin On 4/8/11 11:11 PM, Olivier Sessink wrote:
what is the output of `ldd ./i686` in your example? and `file ./i686` ? Olivier On 04/08/2011 01:11 AM, Martin wrote:Sure, all i pasted before is from jail, logged as jailed user jailer :). Martin On 4/7/11 10:35 PM, Olivier Sessink wrote:On 4/7/11 20:53 , Martin wrote:Hi Olivier, it exists as a symlink.. address@hidden:/lib64$ ls -la /lib64/ld-linux-x86-64.so.2 lrwxrwxrwx 1 root root 12 Mar 28 09:24 /lib64/ld-linux-x86-64.so.2 -> ld-2.11.2.so address@hidden:/lib64$ ls -la ld-2.11.2.so -rwxr-xr-x 1 root root 128744 Jan 23 20:30 ld-2.11.2.so address@hidden:/lib64$ file ld-2.11.2.so ld-2.11.2.so: dataI mean: does it exist in the jail? Olivierany other idea ? I am lost :(. Thanks a lot. regards, Martin On 4/6/11 11:00 PM, Olivier Sessink wrote:On 03/28/2011 11:59 AM, Martin wrote:Hi there, I am running Linux 2.6.32-5-xen-amd64 #1 SMP Wed Jan 12 05:46:49 UTC 2011 x86_64 GNU/Linux,my problem is probably related to lib64 or something like that. When Iam logged as user inside jail,i cannot execute some basics in bash. I tried several ways how to fixthis but I am not successful till now. Every time i try to execute binary with bash script it will stdout : No such file or directory, I checked 777, chmod is set and even owner and group are my id's. When i cd to directory in terminal, and run ./binary it will tell me again : No such file or directory. I've googled that it can be related to x64 and something with bad "jk_update" of /lib, /lib32 and /lib64 from real system to jail. I've also tried several versions of jailkit but nothing helped. su'ed as user jailer to jail: --------------------- address@hidden:~$ cd /home/2704 address@hidden:/home/2704$ ./i686 bash: ./i686: No such file or directory address@hidden:/home/2704$ ls -la | grep i686 -rwxrwxrwx 1 jailer jailer 177498 Mar 28 08:18 i686 Am I doing something wrong ? address@hidden:/$ ldd /bin/bash linux-vdso.so.1 => (0x00007ffff65ff000) libncurses.so.5 => /lib/libncurses.so.5 (0x00007f2e8a124000) libdl.so.2 => /lib/libdl.so.2 (0x00007f2e89f20000) libc.so.6 => /lib/libc.so.6 (0x00007f2e89bbe000) /lib64/ld-linux-x86-64.so.2 (0x00007f2e8a36e000)my first guess: does /lib64/ld-linux-x86-64.so.2 exist? regards, Olivier
[Prev in Thread] | Current Thread | [Next in Thread] |