Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 24985 - start-stop-daemon can not chroot
Summary: start-stop-daemon can not chroot
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-21 11:48 UTC by sergey ivanov
Modified: 2003-07-22 08:01 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sergey ivanov 2003-07-21 11:48:13 UTC
This is the sequence of commands which may reproduce start-stop-daemon's failure
to execute chrooted program:
===
gentoo root # mkdir /test
gentoo root # cp /bin/ls /test
gentoo root # mkdir /test/lib
gentoo root # ldd /test/ls
        librt.so.1 => /lib/librt.so.1 (0x40028000)
        libc.so.6 => /lib/libc.so.6 (0x4003c000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x40164000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
gentoo root # cp /lib/librt.so.1 /test/lib
gentoo root # cp /lib/libc.so.6 /test/lib
gentoo root # cp /lib/libpthread.so.0 /test/lib
gentoo root # cp /lib/ld-linux.so.2 /test/lib
gentoo root # start-stop-daemon --start -r /test --exec /ls
start-stop-daemon: stat /ls: No such file or directory
===
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-07-22 08:01:13 UTC
You want:

  # start-stop-daemon --start -r /test --exec /test/ls --startas /ls