"Erich Liebmann" <erich.liebm...@gmx.net> writes:

> The "mkchroot.sh" sample script that comes with package "rssh" relies on
> "ldd" to determine the shared library dependencies subject to be copied
> to the chroot environment. Unfortunately "ldd" reports an incomplete
> list of shared library dependencies since the introduction of Virtual
> Dynamic Shared Objects (linux-vdso.so).

> # ldd /usr/bin/scp
>         linux-vdso.so.1 =>  (0x00007fff4bdff000)
>         libc.so.6 => /lib/libc.so.6 (0x00007fcaa7e31000)
>         /lib64/ld-linux-x86-64.so.2 (0x00007fcaa83a8000)
> #

> Kindly adjust the "mkchroot.sh" script to work on Linux systems with
> VDSO enabled

Happy to do so as soon as someone tells me how.  :)  I've never heard of
VDSO before and have no idea how to convince ldd to actually provide the
required information.

> or advise (document) which commands can be used to determine the full
> set of dynamic library dependencies required for manual creation of the
> chroot environment.

Just to check, are you sure that your /usr/bin/scp is actually linked with
any other libraries?  Mine isn't:

windlord:~> ldd /usr/bin/scp
        linux-gate.so.1 =>  (0xb76e6000)
        libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb757d000)
        /lib/ld-linux.so.2 (0xb76e7000)

If the problem is just that the chroot script needs to ignore
linux-vdso.so.1 the way that it ignores linux-gate.so.1, that's a very
easy fix.

-- 
Russ Allbery (r...@debian.org)               <http://www.eyrie.org/~eagle/>



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to