]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: Modify nfsd4_cb_sec to use kuids and kgids
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 2 Feb 2013 14:24:49 +0000 (06:24 -0800)
committerEric W. Biederman <ebiederm@xmission.com>
Wed, 13 Feb 2013 14:16:07 +0000 (06:16 -0800)
commit0cb42175c02a8a690781ae86f39eaba4b3b30cf9
treea573059a5c568b5ad560e28d77d6ea27bc91eb07
parentd73e7d1f7893b2f49bb4860ba6e7574d93af9ef9
nfsd: Modify nfsd4_cb_sec to use kuids and kgids

Change uid and gid in struct nfsd4_cb_sec to be of type kuid_t and
kgid_t.

In nfsd4_decode_cb_sec when reading uids and gids off the wire convert
them to kuids and kgids, and if they don't convert to valid kuids or
valid kuids ignore RPC_AUTH_UNIX and don't fill in any of the fields.

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