[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070926150329.GA1563518@hiwaay.net>
Date: Wed, 26 Sep 2007 10:03:29 -0500
From: Chris Adams <cmadams@...aay.net>
To: linux-kernel@...r.kernel.org
Subject: Re: sys_chroot+sys_fchdir Fix
Once upon a time, Alan Cox <alan@...rguk.ukuu.org.uk> said:
>Well if citing standards documents at people is rudeness so be it.
I hate to get involved in this, but actually chroot() is no longer part
of SuS as of version 3.
For other Unix versions, both Tru64 (5.1B) and Solaris (9) chroot(2) man
pages also say the working directory is unaffected by chroot(). The
Solaris man page explicitly mentions using fchdir() to reset the root to
a previously opened directory however.
On Tru64 and Solaris, the chroot command does call chdir() after
chroot(), but that is a userspace thing.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists