[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rm patch suggestion

From: Marcus Brinkmann
Subject: Re: rm patch suggestion
Date: Tue, 7 May 2002 22:06:21 +0200
User-agent: Mutt/1.3.28i

On Tue, May 07, 2002 at 03:59:30PM -0400, Roland McGrath wrote:
> Another approach to this whole issue would be to provide a "safety"
> translator that gives you a virtual directory that accesses an underlying
> filesystem with O_NOTRANS, and only follows translators on nodes owned by 
> root.

Oh, and then

settrans --chroot rm -rf / -- /tmp/untrusted /hurd/safety

with a wrapper script "safety" like for fakeroot?

Sounds like a pattern :)

I think the only headache would be filesystems that refuse to go away
easily.  Maybe that's something the -f option could do: if the node is
translated (assuming you see this, for example because of the safety
translator above), then try to get rid off the translator as hard as
possible, like the -f flag on settrans).

Which reminds me, there are still some translators in the Hurd that don't
obey to the standard rules for this (mostly obscure specialised
translators), that's also a nice job for new Hurd hackers to fix.


`Rhubarb is no Egyptian god.' Debian http://www.debian.org brinkmd@debian.org
Marcus Brinkmann              GNU    http://www.gnu.org    marcus@gnu.org

reply via email to

[Prev in Thread] Current Thread [Next in Thread]