Commit 91da337e authored by Jeff Layton's avatar Jeff Layton Committed by Chuck Lever

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: default avatarSteve Dickson <steved@redhat.com>
Fixes: 16a47117 ("NFSD: add listener-{set,get} netlink command")
Cc: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: default avatarJeff Layton <jlayton@kernel.org>
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
parent 78528097
...@@ -2069,8 +2069,7 @@ int nfsd_nl_listener_set_doit(struct sk_buff *skb, struct genl_info *info) ...@@ -2069,8 +2069,7 @@ int nfsd_nl_listener_set_doit(struct sk_buff *skb, struct genl_info *info)
continue; continue;
} }
ret = svc_xprt_create_from_sa(serv, xcl_name, net, sa, ret = svc_xprt_create_from_sa(serv, xcl_name, net, sa, 0,
SVC_SOCK_ANONYMOUS,
get_current_cred()); get_current_cred());
/* always save the latest error */ /* always save the latest error */
if (ret < 0) if (ret < 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment