On Thu, Feb 5, 2009 at 12:28 PM, Timo Sirainen <t...@iki.fi> wrote:
> On Wed, 2009-02-04 at 17:37 +1300, Michael Kerrisk wrote:
>> > The test program in my previous mail did the chrooting. Just compile it,
>> > mkdir -p /tmp/foo/proc, mount --bind /proc /tmp/foo/proc and run it.
>>
>> So, I did some experimenting.  It looks like the title of your report
>> has things wrong: fexecve() can be used to exec a binary outside the
>> chroot, but this won't work if, for example, the executable as dynamic
>> dependencies that can't be satisfied within the chroot.  To see this,
>> open() a path that is a statically linked executable (so it doesn't
>> have dynamic dependencies).  I tested this: it works.
>
> Oh, interesting. I hadn't thought of that. So I guess the ENOENT error
> then means it couldn't satisfy all dynamic dependencies.

That is how I undestand it.

-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
git://git.kernel.org/pub/scm/docs/man-pages/man-pages.git
man-pages online: http://www.kernel.org/doc/man-pages/online_pages.html
Found a bug? http://www.kernel.org/doc/man-pages/reporting_bugs.html



-- 
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