mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-09-21 12:11:49 +08:00
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: 16a4711774
("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>
This commit is contained in:
parent
7852809734
commit
91da337e5d
@ -2069,8 +2069,7 @@ int nfsd_nl_listener_set_doit(struct sk_buff *skb, struct genl_info *info)
|
||||
continue;
|
||||
}
|
||||
|
||||
ret = svc_xprt_create_from_sa(serv, xcl_name, net, sa,
|
||||
SVC_SOCK_ANONYMOUS,
|
||||
ret = svc_xprt_create_from_sa(serv, xcl_name, net, sa, 0,
|
||||
get_current_cred());
|
||||
/* always save the latest error */
|
||||
if (ret < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user