Linux filesystem development
 help / color / mirror / Atom feed
From: Andreas Gruenbacher <agruen@suse.de>
To: Dave Kleikamp <shaggy@austin.ibm.com>
Cc: acl-devel@bestbits.at, linux-fsdevel@vger.kernel.org,
	Luka Renko <luka.renko@hermes.si>
Subject: Re: JFS extended attributes and ACLs - New Patches
Date: Thu, 12 Sep 2002 19:04:23 +0200	[thread overview]
Message-ID: <200209121904.23048.agruen@suse.de> (raw)
In-Reply-To: <200209121116.49094.shaggy@austin.ibm.com>

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


  reply	other threads:[~2002-09-12 17:04 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-10  7:40 JFS extended attributes and ACLs - New Patches Luka Renko
2002-09-12 15:13 ` Andreas Gruenbacher
2002-09-12 16:16   ` Dave Kleikamp
2002-09-12 17:04     ` Andreas Gruenbacher [this message]
2002-09-12 17:34       ` Dave Kleikamp
2002-09-13  5:06         ` Nathan Scott
2002-09-13  9:27           ` Andreas Gruenbacher
2002-09-13 12:18           ` Dave Kleikamp
2002-09-13 13:20             ` [Acl-Devel] " Andreas Gruenbacher
2002-09-13 13:33               ` Dave Kleikamp
2002-09-13  9:32         ` Andreas Gruenbacher
     [not found] <Pine.LNX.4.33.0209061703200.26258-100000@wotan.suse.de>
     [not found] ` <200209061718.59114.agruen@suse.de>
2002-09-09 14:58   ` Dave Kleikamp
2002-09-09 15:02     ` Andreas Gruenbacher
2002-09-09 15:28       ` Dave Kleikamp
2002-09-09 15:30         ` Dave Kleikamp

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200209121904.23048.agruen@suse.de \
    --to=agruen@suse.de \
    --cc=acl-devel@bestbits.at \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=luka.renko@hermes.si \
    --cc=shaggy@austin.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox