xfs
[Top] [All Lists]

Re: Chattr

To: linux-xfs@xxxxxxxxxxx
Subject: Re: Chattr
From: Ethan Benson <erbenson@xxxxxxxxxx>
Date: Tue, 30 Apr 2002 14:31:15 -0800
In-reply-to: <20020430232706.A28044@wotan.suse.de>; from ak@suse.de on Tue, Apr 30, 2002 at 11:27:06PM +0200
Mail-copies-to: nobody
Mail-followup-to: linux-xfs@xxxxxxxxxxx
References: <1020111402.18036.0.camel@UberGeek> <1020174674.24262.0.camel@jen.americas.sgi.com> <20020430062608.M21791@plato.local.lan> <1020178382.24279.31.camel@jen.americas.sgi.com> <20020430232706.A28044@wotan.suse.de>
Sender: owner-linux-xfs@xxxxxxxxxxx
User-agent: Mutt/1.2.5i
On Tue, Apr 30, 2002 at 11:27:06PM +0200, Andi Kleen wrote:
> On Tue, Apr 30, 2002 at 09:53:02AM -0500, Steve Lord wrote:
> > I said you cannot do it, I was referring to the existing code, yes it
> > is possible, but currently only ext2 and ext3 support this, and chattr
> > is an ext2 utility, not a generic linux filesystem utility.
> > 
> > Adding it also introduces an on disk incompatibility between Irix and
> > Linux, and probably we could not take the code back to Irix, given its
> > origin. So we would need to version the superblock - we would need that
> > anyway for backward compatibility. All in all it gets to be a larger
> > project than you might think. My problem now is definitely not lack of
> > work ;-)
> 
> If one would put it into a new extended attribute then I guess it could
> be compatible to irix. 
> 
> Disadvantage: checking it is more costly than just a bit in the main inode,
> but I guess when ACLs is enabled it has to search the EAs for each inode 
> open anyways, so it probably won't make too much difference.

i believe that would be considered too ugly of a kludge,
immutable/append-only are bits, not attributes.  it also gets messy
since you need to establish an entirely new xattr namespace whose
access is controlled by CAP_LINUX_IMMUTABLE if you really want to do
it right. (with ext2/3 when you remove CAP_LINUX_IMMUTABLE from the
capability bounding set root cannot set or remove these bits, but if
you use the system.* namespace root could just remove them with
setfattr).

-- 
Ethan Benson
http://www.alaska.net/~erbenson/

Attachment: pgpwI69Gs4PPE.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>