From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Gruenbacher Subject: Re: JFS extended attributes and ACLs - New Patches Date: Thu, 12 Sep 2002 19:04:23 +0200 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <200209121904.23048.agruen@suse.de> References: <200209121713.44897.agruen@suse.de> <200209121116.49094.shaggy@austin.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Cc: acl-devel@bestbits.at, linux-fsdevel@vger.kernel.org, Luka Renko Return-path: To: Dave Kleikamp In-Reply-To: <200209121116.49094.shaggy@austin.ibm.com> List-Id: linux-fsdevel.vger.kernel.org On Thursday 12 September 2002 18:16, Dave Kleikamp wrote: > On Thursday 12 September 2002 10:13, Andreas Gruenbacher wrote: > > From a filesystem point of view I can understand this position. From > > the VFS point of view this doesn't make too much sense though: For > > each namespace there are at least three kinds of limitations: > > Policy/permissions, restrictions on the valid values, and storage > > related limitations. Filesystems may support different namespaces, > > and within namespaces like `system', different attributes with > > individual restrictions. > > Let the filesystems just worry about the storage related limitations. > If the filesystems support another namespace, let them register it at a > filesystem-independent layer so all of this policy is enforced in one > place. I think its a bad idea to have 5 different file systems all > duplicating the same code to check permissions, etc. for the system and > user namespaces. We could take the restriction checking code (which is in fact only a couple of lines), put these functions in the VFS, and let the file systems invoke these functions (as partially done for ACLs, e.g., fs/posix_acl.c's posix_acl_valid()). Not a lot of code would remain though. I don't think a VFS xattr namespace/name/policy registry stands a chance of getting accepted into the standard kernel. Part of the checking code may be to convert xattrs into some internal representation (e.g., for ACLs). I'd like to avoid enforcing in the VFS the representation that is used. [...] > > JFS apparently has some sort of > > legacy extended attributes (the OS/2 stuff that's mentioned in the > > patch), NTFS has very different Windows type ACLs. ACLs will start to > > differ from each other once additional features are implemented. > > JFS could add an "os2." namespace to handle the legacy attributes. > Different ACLs could be stored in a different system.* attribute, or > converted to posix ACLs. within before being stored. Yes, this is what I wanted to propose, unless the semantics are exactly the same as for user xattrs. What are the exact rules for accessing these attributes under OS/2? How about AIX? Can you implement the `os2.' namespace in the JFS patches? I'd be much happier with the patch. Regards, Andreas. ------------------------------------------------------------------ Andreas Gruenbacher SuSE Linux AG mailto:agruen@suse.de Deutschherrnstr. 15-19 http://www.suse.de/ D-90429 Nuernberg, Germany