diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-06-09 09:34:30 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-06-09 09:34:30 -0400 |
commit | 87e4ba1a62af8e05ee3e8f8aaca622714386ffb0 (patch) | |
tree | f37f00e2c5cc5904f57395f800e8e6544eb062d9 | |
parent | 33a43f2802d8d7be3a9b541785c4ca9ad79e4310 (diff) |
NFSv4: Ensure that referral mounts bind to a reserved port
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
-rw-r--r-- | fs/nfs/inode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index ee13cb01b56e..648f593de0fe 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c | |||
@@ -2078,6 +2078,8 @@ static struct rpc_clnt *nfs4_create_client(struct nfs_server *server, | |||
2078 | __FUNCTION__, err); | 2078 | __FUNCTION__, err); |
2079 | goto out_fail; | 2079 | goto out_fail; |
2080 | } | 2080 | } |
2081 | /* Bind to a reserved port! */ | ||
2082 | xprt->resvport = 1; | ||
2081 | clnt = rpc_create_client(xprt, server->hostname, &nfs_program, | 2083 | clnt = rpc_create_client(xprt, server->hostname, &nfs_program, |
2082 | server->rpc_ops->version, flavor); | 2084 | server->rpc_ops->version, flavor); |
2083 | if (IS_ERR(clnt)) { | 2085 | if (IS_ERR(clnt)) { |