Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Oct 2004 21:26:21 +0200 (CEST)
From:      Michael Reifenberger <mike@Reifenberger.com>
To:        David Schultz <das@FreeBSD.ORG>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Protection from the dreaded "rm -fr /"
Message-ID:  <20041002211759.R24332@fw.reifenberger.com>
In-Reply-To: <20041002185055.GA1029@VARK.MIT.EDU>
References:  <20041002081928.GA21439@gothmog.gr> <20041002102918.W22102@fw.reifenberger.com> <20041002185055.GA1029@VARK.MIT.EDU>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 2 Oct 2004, David Schultz wrote:
...
> Do you also want to be able to swap to the root partition while
> it's mounted?  We can bring back that feature, too.  But
> personally, I don't see anything wrong with the view that
> operations that are guaranteed to shoot people in the foot should
> be disallowed.
>

Every anti foot shooting takes time to check for.
A strncmp for every arg is maybe ok. Traversing the tree for realpath is not.
The job for `rm` is to remove whatever it is given to get removed.
As fast as possible. Nothing else.

Bye/2
---
Michael Reifenberger, Business Development Manager SAP-Basis, Plaut Consulting
Comp: Michael.Reifenberger@plaut.de | Priv: Michael@Reifenberger.com
       http://www.plaut.de           |       http://www.Reifenberger.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041002211759.R24332>