]> git.karo-electronics.de Git - linux-beck.git/commit
nfs_common: Update the translation between nfsv3 acls linux posix acls
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 1 Feb 2013 22:50:52 +0000 (14:50 -0800)
committerEric W. Biederman <ebiederm@xmission.com>
Wed, 13 Feb 2013 14:15:14 +0000 (06:15 -0800)
commitddca4e1730cf1b72044ae76ddf17b29d790b4dbc
treef5659143f3b480dd7fd93ea8e0a324884fe3cf87
parent1ac7fd8190b79c822631ed537186fb8b2d9e9b74
nfs_common: Update the translation between nfsv3 acls linux posix acls

- Use kuid_t and kgit in struct nfsacl_encode_desc.
- Convert from kuids and kgids when generating on the wire values.
- Convert on the wire values to kuids and kgids when read.
- Modify cmp_acl_entry to be type safe comparison on posix acls.
  Only acls with type ACL_USER and ACL_GROUP can appear more
  than once and as such need to compare more than their tag.
- The e_id field is being removed from posix acls so don't initialize it.

Cc: "J. Bruce Fields" <bfields@fieldses.org>
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
fs/nfs_common/nfsacl.c