mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andreas Gruenbacher <agruen@suse.de>
To: Christoph Hellwig <hch@infradead.org>
Cc: linux-kernel@vger.kernel.org, ext2-devel@sourceforge.net, tytso@mit.edu
Subject: Re: [Ext2-devel] [RFC] [PATCH 1/5] ACL support for ext2/3
Date: Thu, 10 Oct 2002 20:53:49 +0200	[thread overview]
Message-ID: <200210102053.49806.agruen@suse.de> (raw)
In-Reply-To: <20021010193433.A26873@infradead.org>

On Thursday 10 October 2002 20:34, Christoph Hellwig wrote:
> [...]
> > diff -Nru a/include/linux/fs.h b/include/linux/fs.h
> > --- a/include/linux/fs.h	Wed Oct  9 23:53:33 2002
> > +++ b/include/linux/fs.h	Wed Oct  9 23:53:33 2002
> > @@ -770,6 +770,9 @@
> >  	unsigned long (*get_unmapped_area)(struct file *, unsigned long,
> > unsigned long, unsigned long, unsigned long); };
> >
> > +/* posix_acl.h */
> > +struct posix_acl;
> > +
> >  struct inode_operations {
> >  	int (*create) (struct inode *,struct dentry *,int);
> >  	struct dentry * (*lookup) (struct inode *,struct dentry *);
> > @@ -791,6 +794,8 @@
> >  	ssize_t (*getxattr) (struct dentry *, const char *, void *, size_t);
> >  	ssize_t (*listxattr) (struct dentry *, char *, size_t);
> >  	int (*removexattr) (struct dentry *, const char *);
> > +	struct posix_acl *(*get_posix_acl) (struct inode *, int);
> > +	int (*set_posix_acl) (struct inode *, int, struct posix_acl *);
>
> Either you make all setting/retrieving of ACLs go through this interface or
> just rip it.  We don't need more than one way to fiddle with ACLs.

This is an open design problem. Going through the xattr interface is too slow 
for the nfs_permission_mode hack (which if enabled masks off permissions 
before sending them to old clients to be on the safe side). On the other 
hand, always going through the inode operations is also quirky as we would 
need to dispatch xattr names and decode values both in the VFS and in the FS. 
A clean solution to this would be very welcome.

> Also they should take dentries.
They will once permission() also takes dentries. Before that they can't.

--Andreas.


      reply	other threads:[~2002-10-10 18:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-10  5:10 tytso
2002-10-10 18:34 ` [Ext2-devel] " Christoph Hellwig
2002-10-10 18:53   ` Andreas Gruenbacher [this message]

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=200210102053.49806.agruen@suse.de \
    --to=agruen@suse.de \
    --cc=ext2-devel@sourceforge.net \
    --cc=hch@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tytso@mit.edu \
    /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

all inboxes | Powered by JetHome®