summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/auth_generic.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2013-02-01 17:10:52 -0800
committerEric W. Biederman <ebiederm@xmission.com>2013-02-13 06:15:19 -0800
commitcdba321e291f0fbf5abda4d88340292b858e3d4d (patch)
tree67792b091f081f9fcd8b76c7b727016f7c6a17a4 /net/sunrpc/auth_generic.c
parent9132adb0212c7ddf37d1c2a26c12f8fe7706827d (diff)
downloadop-kernel-dev-cdba321e291f0fbf5abda4d88340292b858e3d4d.zip
op-kernel-dev-cdba321e291f0fbf5abda4d88340292b858e3d4d.tar.gz
sunrpc: Convert kuids and kgids to uids and gids for printing
When printing kuids and kgids for debugging purpropses convert them to ordinary integers so their values can be fed to the oridnary print functions. 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 'net/sunrpc/auth_generic.c')
-rw-r--r--net/sunrpc/auth_generic.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/sunrpc/auth_generic.c b/net/sunrpc/auth_generic.c
index bff3e47..b6badaf 100644
--- a/net/sunrpc/auth_generic.c
+++ b/net/sunrpc/auth_generic.c
@@ -96,7 +96,9 @@ generic_create_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags)
dprintk("RPC: allocated %s cred %p for uid %d gid %d\n",
gcred->acred.machine_cred ? "machine" : "generic",
- gcred, acred->uid, acred->gid);
+ gcred,
+ from_kuid(&init_user_ns, acred->uid),
+ from_kgid(&init_user_ns, acred->gid));
return &gcred->gc_base;
}
OpenPOWER on IntegriCloud