diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2013-02-06 02:30:39 -0800 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2013-02-13 07:28:55 -0800 |
commit | 64ed39dd1ef284c0338799a6167b77a6d6e01982 (patch) | |
tree | 4cc91e6d9081a6ff2b5ebe877593bdab165703c9 /fs/cifs/cifs_spnego.c | |
parent | 1f68233c52e9f2bb53130a0063bc1e6864f6d204 (diff) | |
download | op-kernel-dev-64ed39dd1ef284c0338799a6167b77a6d6e01982.zip op-kernel-dev-64ed39dd1ef284c0338799a6167b77a6d6e01982.tar.gz |
cifs: Convert struct cifs_ses to use a kuid_t and a kgid_t
Cc: Steve French <smfrench@gmail.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'fs/cifs/cifs_spnego.c')
-rw-r--r-- | fs/cifs/cifs_spnego.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/cifs/cifs_spnego.c b/fs/cifs/cifs_spnego.c index 086f381..10e7747 100644 --- a/fs/cifs/cifs_spnego.c +++ b/fs/cifs/cifs_spnego.c @@ -149,10 +149,12 @@ cifs_get_spnego_key(struct cifs_ses *sesInfo) goto out; dp = description + strlen(description); - sprintf(dp, ";uid=0x%x", sesInfo->linux_uid); + sprintf(dp, ";uid=0x%x", + from_kuid_munged(&init_user_ns, sesInfo->linux_uid)); dp = description + strlen(description); - sprintf(dp, ";creduid=0x%x", sesInfo->cred_uid); + sprintf(dp, ";creduid=0x%x", + from_kuid_munged(&init_user_ns, sesInfo->cred_uid)); if (sesInfo->user_name) { dp = description + strlen(description); |