Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 01 Sep 1999 00:40:41 -0600
From:      Warner Losh <imp@village.org>
To:        Frank Tobin <ftobin@uiuc.edu>
Cc:        FreeBSD-security Mailing List <freebsd-security@FreeBSD.ORG>
Subject:   Re: Not sure if you got it... 
Message-ID:  <199909010640.AAA16059@harmony.village.org>
In-Reply-To: Your message of "Tue, 31 Aug 1999 10:56:40 CDT." <Pine.BSF.4.10.9908311022370.45784-100000@isr4033.urh.uiuc.edu> 
References:  <Pine.BSF.4.10.9908311022370.45784-100000@isr4033.urh.uiuc.edu>  

next in thread | previous in thread | raw e-mail | index | archive | help
In message <Pine.BSF.4.10.9908311022370.45784-100000@isr4033.urh.uiuc.edu> Frank Tobin writes:
: 3) Use chflags -R <noAllFlagsOrSuch>, followed by rm -rf.  This two step
: process is consistent with unix philosophy.  This is probably the cleanest
: (traditionally) solution.  However, it causes two disk passes instead of
: one.

And might also have a race condition in it, since if someone adds a
flag after the chflags -R has gone over it, rm will not be able to
remove the file.

: 4) Use find(1) with -exec chflags and rm.  This has the downside of many
: processes getting started (one chflags and one rm for each node), and
: again, more disk usage (we don't all use SCSI yet).

5) find -delete should take all measures that it can to remove the file.

The whole file flags thing was a cool idea, but it is a PITA and
likely shouldn't have been implemented the way it was:-(

Warner


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message




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