SUNRPC: Convert svcauth_unix_accept() to use xdr_stream
authorChuck Lever <chuck.lever@oracle.com>
Mon, 2 Jan 2023 17:05:56 +0000 (12:05 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 20 Feb 2023 14:20:11 +0000 (09:20 -0500)
commit6181b0c6432bf0807512e85e0c5863f7aca8e515
tree379ea03d1b92d988b0bb4dd774d1b91c488ecab6
parentbee13639c0940abdea4dcaaf7f9bc0b88a68322b
SUNRPC: Convert svcauth_unix_accept() to use xdr_stream

Done as part of hardening the server-side RPC header decoding path.

Since the server-side of the Linux kernel SunRPC implementation
ignores the contents of the Call's machinename field, there's no
need for its RPC_AUTH_UNIX authenticator to reject names that are
larger than UNX_MAXNODENAME.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
include/linux/sunrpc/msg_prot.h
net/sunrpc/svcauth_unix.c