mirror of
https://github.com/adulau/aha.git
synced 2025-01-03 22:53:18 +00:00
NFSv4: Ensure that referral mounts bind to a reserved port
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
33a43f2802
commit
87e4ba1a62
1 changed files with 2 additions and 0 deletions
|
@ -2078,6 +2078,8 @@ static struct rpc_clnt *nfs4_create_client(struct nfs_server *server,
|
||||||
__FUNCTION__, err);
|
__FUNCTION__, err);
|
||||||
goto out_fail;
|
goto out_fail;
|
||||||
}
|
}
|
||||||
|
/* Bind to a reserved port! */
|
||||||
|
xprt->resvport = 1;
|
||||||
clnt = rpc_create_client(xprt, server->hostname, &nfs_program,
|
clnt = rpc_create_client(xprt, server->hostname, &nfs_program,
|
||||||
server->rpc_ops->version, flavor);
|
server->rpc_ops->version, flavor);
|
||||||
if (IS_ERR(clnt)) {
|
if (IS_ERR(clnt)) {
|
||||||
|
|
Loading…
Reference in a new issue