Date: Sun, 3 Oct 2004 04:53:21 +0300 From: Giorgos Keramidas <keramida@freebsd.org> To: "M. Warner Losh" <imp@bsdimp.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Protection from the dreaded "rm -fr /" Message-ID: <20041003015321.GA3190@gothmog.gr> In-Reply-To: <20041002.192951.35870461.imp@bsdimp.com> References: <20041002175517.GA2230@gothmog.gr> <20041002204851.K24332@fw.reifenberger.com> <20041002210554.GS35869@seekingfire.com> <20041002.192951.35870461.imp@bsdimp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2004-10-02 19:29, "M. Warner Losh" <imp@bsdimp.com> wrote: > In message: <20041002210554.GS35869@seekingfire.com> > Tillman Hodgson <tillman@seekingfire.com> writes: > : It'll never work, though, that's the thing. At some point it'll rm > : something it itself needs and error out. There isn't a way to use `rm > : -rf /` that /doesn't/ result in foot-shooting. > > No. You are wrong. if you rm -rf in a chroot, then it won't result > in foot shooting, necessarily, like it would outside a chroot. Since a chroot can always be rm -fr deleted from outside the chroot, this isn't really a great problem, is it?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041003015321.GA3190>