From mboxrd@z Thu Jan 1 00:00:00 1970 From: Al Viro Subject: Re: [RFC][PATCH 0/3] vfs: Detach mounts on unlink. Date: Sun, 6 Oct 2013 00:24:51 +0100 Message-ID: <20131005232451.GX13318@ZenIV.linux.org.uk> References: <87li281wx6.fsf_-_@xmission.com> <1381014462.1974.162@driftwood> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Rob Landley , "Eric W. Biederman" , Miklos Szeredi , "Serge E. Hallyn" , Linux-Fsdevel , Kernel Mailing List , Andy Lutomirski To: Linus Torvalds Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Sat, Oct 05, 2013 at 04:17:55PM -0700, Linus Torvalds wrote: > On Sat, Oct 5, 2013 at 4:07 PM, Rob Landley wrote: > > > > A todo item I've had _forever_ is fixing chroot() to not be broken so that > > you can trivially break out of a chroot via: > > What drugs are you on? > > Your example is moronic, and against all _documented_ uses of chroot. ... and even fixing that example (chroot *can* be escaped, if you can call chroot(2) - mkdir /foo, chdir /, chroot /foo, chroot .. and you are out) the whole thing is idiocy - chroot() is not and has never been root-proof and anybody expecting it to be has failed to read any number of FAQs out there.