lkml.org 
[lkml]   [2003]   [Jul]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: chroot bug if arg not absolute path?
Dan Kegel wrote:
> On my Debian 3.0 system running the 2.4.18 kernel, I
> ran into a funny problem: /usr/sbin/chroot, or the chroot()
> system call followed by the chdir() system call,
> seem to work if their argument is not an absolute path;
> that is, scandir("/bin") can see the files in the jail,
> but execlp("/bin/sh", "/bin/sh", 0) fails to find the /bin/sh
> in the jail, and sets errno to ENOENT.
>
> Is this a bug, or do I have a screw loose behind the wheel?

The latter. Ignore me.
- Dan


--
Dan Kegel
http://www.kegel.com
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:46    [W:0.022 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site