summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/auth.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2013-02-02 15:42:53 +0100
committerEric W. Biederman <ebiederm@xmission.com>2013-02-13 15:16:08 +0100
commit4c1e1b34d5c800ad3ac9a7e2805b0bea70ad2278 (patch)
tree1d52d5be323c160ae98f35dd32c7f8109879354d /fs/nfsd/auth.c
parentnfsd: Modify nfsd4_cb_sec to use kuids and kgids (diff)
downloadlinux-4c1e1b34d5c800ad3ac9a7e2805b0bea70ad2278.tar.xz
linux-4c1e1b34d5c800ad3ac9a7e2805b0bea70ad2278.zip
nfsd: Store ex_anon_uid and ex_anon_gid as kuids and kgids
Cc: "J. Bruce Fields" <bfields@fieldses.org> Cc: Trond Myklebust <Trond.Myklebust@netapp.com> Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'fs/nfsd/auth.c')
-rw-r--r--fs/nfsd/auth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/auth.c b/fs/nfsd/auth.c
index 34a10d78b839..4d6642b38eae 100644
--- a/fs/nfsd/auth.c
+++ b/fs/nfsd/auth.c
@@ -58,7 +58,7 @@ int nfsd_setuser(struct svc_rqst *rqstp, struct svc_export *exp)
for (i = 0; i < rqgi->ngroups; i++) {
if (gid_eq(GLOBAL_ROOT_GID, GROUP_AT(rqgi, i)))
- GROUP_AT(gi, i) = make_kgid(&init_user_ns, exp->ex_anon_gid);
+ GROUP_AT(gi, i) = exp->ex_anon_gid;
else
GROUP_AT(gi, i) = GROUP_AT(rqgi, i);
}