Skip to content

Commit 91da337

Browse files
jtlaytonchucklever
authored andcommitted
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: 16a4711 ("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>
1 parent 7852809 commit 91da337

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fs/nfsd/nfsctl.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2069,8 +2069,7 @@ int nfsd_nl_listener_set_doit(struct sk_buff *skb, struct genl_info *info)
20692069
continue;
20702070
}
20712071

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,
20742073
get_current_cred());
20752074
/* always save the latest error */
20762075
if (ret < 0)

0 commit comments

Comments
 (0)