From: "J. Bruce Fields" <bfields@fieldses.org>
To: Jeremy Allison <jra@samba.org>
Cc: Ondrej Valousek <webserv@s3group.com>,
"samba-technical@lists.samba.org"
<samba-technical@lists.samba.org>,
linux-nfs@vger.kernel.org
Subject: Re: NFSv4 ACLs
Date: Fri, 20 Apr 2012 18:08:32 -0400 [thread overview]
Message-ID: <20120420220832.GA1914@fieldses.org> (raw)
In-Reply-To: <20120420215945.GE32622@samba2>
On Fri, Apr 20, 2012 at 02:59:45PM -0700, Jeremy Allison wrote:
> On Fri, Apr 20, 2012 at 05:26:27PM -0400, J. Bruce Fields wrote:
> > On Fri, Apr 20, 2012 at 11:55:53AM -0700, Jeremy Allison wrote:
> > > On Fri, Apr 20, 2012 at 12:04:02PM +0200, Ondrej Valousek wrote:
> > > > Hi List,
> > > >
> > > > I know this has been asked many times, but I will ask one more time:
> > > > I would like to export NFSv4 mounted filesystem with Samba and would
> > > > like to be able to use windows "security tab" in explorer to modify
> > > > these ACLs.
> > > > Do I have any chance with Samba on RHEL-5/6?
> > >
> > > Does Linux have local API's to manipulate mounted NFSv4 ACLs ?
> > >
> > > Samba has VFS modules to cope with mapping Windows ACLs onto
> > > NFSv4 ACLs but currently they only work on AIX, Linux with IBM's
> > > gpfs and Solaris right now.
> > >
> > > If you can point me a docs showing the library APIs for Linux
> > > to allow programatic manipulation of NFSv4 ACLs then I can
> > > make it work on Linux too.
> >
> > It's a bit idiosyncratic, but should be easy enough to handle if you
> > want, I think: on the linux client, on an nfs4 filesystem, the
> > "system.nfs4_acl" xattr contains the xdr-encoded ACL as it came in on
> > the wire (network-byte-order and all). See the definition of fattr4_acl
> > in rfc 3530.
>
> I'm sorry, but that *really* *really* sucks. There needs to
> be an API on the Linux side that implements both RichACLs
> and NFSv4 ACLs (as they're the same thing essentially).
Yes, that's the eventual plan.
The richacl patches still need a little more work, and alas there's
noone working on them currently as far as I know.
So if you wanted something that would work now, you could use
system.nfs4_acl now and later replace that by something that tried
richacls and then fell back.
The xdr isn't hard to parse or create--the main problem would be
figuring out what to do with the names....
(By the way, is reexporting nfs with samba really going to work well
anyway?)
--b.
next prev parent reply other threads:[~2012-04-20 22:08 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4F913492.8000402@s3group.cz>
[not found] ` <20120420185553.GB32622@samba2>
2012-04-20 21:26 ` NFSv4 ACLs J. Bruce Fields
2012-04-20 21:59 ` Jeremy Allison
2012-04-20 22:08 ` J. Bruce Fields [this message]
2012-04-21 1:34 ` simo
2012-04-21 11:34 ` steve
2012-04-21 23:57 ` Andrew Bartlett
2012-04-23 14:49 ` steve
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=20120420220832.GA1914@fieldses.org \
--to=bfields@fieldses.org \
--cc=jra@samba.org \
--cc=linux-nfs@vger.kernel.org \
--cc=samba-technical@lists.samba.org \
--cc=webserv@s3group.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.