aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2006-06-09 09:34:30 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2006-06-09 09:34:30 -0400
commit87e4ba1a62af8e05ee3e8f8aaca622714386ffb0 (patch)
treef37f00e2c5cc5904f57395f800e8e6544eb062d9 /fs/nfs
parentNFSv4: A root pathname is sent as a zero component4 (diff)
downloadlinux-dev-87e4ba1a62af8e05ee3e8f8aaca622714386ffb0.tar.xz
linux-dev-87e4ba1a62af8e05ee3e8f8aaca622714386ffb0.zip
NFSv4: Ensure that referral mounts bind to a reserved port
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/inode.c2
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,
__FUNCTION__, err);
goto out_fail;
}
+ /* Bind to a reserved port! */
+ xprt->resvport = 1;
clnt = rpc_create_client(xprt, server->hostname, &nfs_program,
server->rpc_ops->version, flavor);
if (IS_ERR(clnt)) {