ACL handling for NFSv4
ACL handling for NFSv4
- Subject: ACL handling for NFSv4
- From: Rick Macklem <email@hidden>
- Date: Thu, 13 Nov 2008 15:38:35 -0500 (EST)
I finally have an NFSv4 server that includes support for NFSv4 ACLs, so I
was hoping to tweak my NFSv4 Leopard client
(http://code.google.com/p/macnfsv4) to make use of them. (Note this is an
experimental open source project using a Kext that already goes beyond the
KPIs, so I realize that the internal interfaces may change at any time...)
Looking at xnu-1228 sources, it seems that getting an ACL from a file
system is done via vnode_getattr(), but is set via vn_setxattr() setting
KAUTH_FILESEC_XATTR. Is that correct? (Or, does the vfs always set the
kauth_filesec at the same time it sets an ACL?)
Part of my problem is that I don't have extended attribute support in
the server, so I don't have a way to store/retrieve the guid_t owner
and group fields in kauth_filesec on the server, which leads me to...
What are the guid_t owner and group fields of a kauth_filesec and is
there a way a client can map those to/from uid/gid or do they have to
be stored/retrieved from the file system? (If I have to store/retrieve
them, I suspect I'm snookered.)
Thanks in advance for any information on this, rick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden