summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/sunrpc/auth_gss/svcauth_gss.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/sunrpc/auth_gss/svcauth_gss.c b/net/sunrpc/auth_gss/svcauth_gss.c
index 0c5d7896d6dd..8be2f209982b 100644
--- a/net/sunrpc/auth_gss/svcauth_gss.c
+++ b/net/sunrpc/auth_gss/svcauth_gss.c
@@ -474,12 +474,12 @@ static int rsc_parse(struct cache_detail *cd,
474 * treatment so are checked for validity here.) 474 * treatment so are checked for validity here.)
475 */ 475 */
476 /* uid */ 476 /* uid */
477 rsci.cred.cr_uid = make_kuid(&init_user_ns, id); 477 rsci.cred.cr_uid = make_kuid(current_user_ns(), id);
478 478
479 /* gid */ 479 /* gid */
480 if (get_int(&mesg, &id)) 480 if (get_int(&mesg, &id))
481 goto out; 481 goto out;
482 rsci.cred.cr_gid = make_kgid(&init_user_ns, id); 482 rsci.cred.cr_gid = make_kgid(current_user_ns(), id);
483 483
484 /* number of additional gid's */ 484 /* number of additional gid's */
485 if (get_int(&mesg, &N)) 485 if (get_int(&mesg, &N))
@@ -497,7 +497,7 @@ static int rsc_parse(struct cache_detail *cd,
497 kgid_t kgid; 497 kgid_t kgid;
498 if (get_int(&mesg, &id)) 498 if (get_int(&mesg, &id))
499 goto out; 499 goto out;
500 kgid = make_kgid(&init_user_ns, id); 500 kgid = make_kgid(current_user_ns(), id);
501 if (!gid_valid(kgid)) 501 if (!gid_valid(kgid))
502 goto out; 502 goto out;
503 rsci.cred.cr_group_info->gid[i] = kgid; 503 rsci.cred.cr_group_info->gid[i] = kgid;