]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
sunrpc: Update gss uid to security context mapping.
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 2 Feb 2013 08:25:43 +0000 (00:25 -0800)
committerEric W. Biederman <ebiederm@xmission.com>
Wed, 13 Feb 2013 14:15:21 +0000 (06:15 -0800)
commit90602c7b192fdd3e6b7c7623479f4bc86ed7ee34
tree2f313b2bc00993566af1dd56e854bf319f4c9c55
parente572fc739822ad779493b8a72bd27f2101fc3373
sunrpc: Update gss uid to security context mapping.

- Use from_kuid when generating the on the wire uid values.
- Use make_kuid when reading on the wire values.

In gss_encode_v0_msg, since the uid in gss_upcall_msg is now a kuid_t
generate the necessary uid_t value on the stack copy it into
gss_msg->databuf where it can safely live until the message is no
longer needed.

Cc: "J. Bruce Fields" <bfields@fieldses.org>
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
net/sunrpc/auth_gss/auth_gss.c