nfsd: don't set SVC_SOCK_ANONYMOUS when creating nfsd sockets

When creating nfsd sockets via the netlink interface, we do want to
register with the portmapper. Don't set SVC_SOCK_ANONYMOUS.

Reported-by: Steve Dickson <steved@redhat.com>
Fixes: 16a471177496 ("NFSD: add listener-{set,get} netlink command")
Cc: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>

authored by Jeff Layton and committed by Chuck Lever 91da337e 78528097

+1 -2
+1 -2
fs/nfsd/nfsctl.c
··· 2069 2069 continue; 2070 2070 } 2071 2071 2072 - ret = svc_xprt_create_from_sa(serv, xcl_name, net, sa, 2073 - SVC_SOCK_ANONYMOUS, 2072 + ret = svc_xprt_create_from_sa(serv, xcl_name, net, sa, 0, 2074 2073 get_current_cred()); 2075 2074 /* always save the latest error */ 2076 2075 if (ret < 0)