SUNRPC: Fix the server AUTH_UNIX userspace mappings
authorTrond Myklebust <trondmy@gmail.com>
Tue, 9 Apr 2019 16:13:40 +0000 (12:13 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 24 Apr 2019 13:46:35 +0000 (09:46 -0400)
commitccfe51a5161c17d24157c08f9963f351a89268fa
tree486bd214b8fc600eb3481af9ffe9ebe81643e8e9
parent40373b125de6bab186e71d5ea5498bb2b845398b
SUNRPC: Fix the server AUTH_UNIX userspace mappings

gid_parse() is part of a downcall, so uids and gids should be assumed
encoded using the current user namespace.
svcauth_unix_accept() is, on the other hand, decoding uids and gids from
the wire, so we assume those are encoded to match the user namespace of
the server process.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/svcauth_unix.c