From owner-freebsd-hackers@FreeBSD.ORG Sun Oct 3 20:34:09 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 689CB16A4CE for ; Sun, 3 Oct 2004 20:34:09 +0000 (GMT) Received: from smtp.des.no (flood.des.no [217.116.83.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2CC2343D2D for ; Sun, 3 Oct 2004 20:34:09 +0000 (GMT) (envelope-from des@des.no) Received: by smtp.des.no (Pony Express, from userid 666) id 0D91F5312; Sun, 3 Oct 2004 22:34:08 +0200 (CEST) Received: from dwp.des.no (des.no [80.203.228.37]) by smtp.des.no (Pony Express) with ESMTP id B09CC5313; Sun, 3 Oct 2004 22:34:00 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 2602) id 8E19EB860; Sun, 3 Oct 2004 22:34:00 +0200 (CEST) To: "M. Warner Losh" References: <20041002210554.GS35869@seekingfire.com> <20041002.192951.35870461.imp@bsdimp.com> <20041003030946.GV35869@seekingfire.com> <20041003.113739.95785967.imp@bsdimp.com> From: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) Date: Sun, 03 Oct 2004 22:34:00 +0200 In-Reply-To: <20041003.113739.95785967.imp@bsdimp.com> (M. Warner Losh's message of "Sun, 03 Oct 2004 11:37:39 -0600 (MDT)") Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on flood.des.no X-Spam-Level: X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.64 cc: freebsd-hackers@freebsd.org Subject: Re: Protection from the dreaded "rm -fr /" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Oct 2004 20:34:09 -0000 "M. Warner Losh" writes: > rm doesn't have to live in the chroot. Consider > chroot /some/path/to/a/chroot rm -rf / > in this case, everything under the /some/path/to/a/chroot would be > removed. However, the rm that's running is outside of the chroot. Wrong, and I'd be interested to hear how you think chroot(8) would pull that off if it were the case. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no