From: Trond Myklebust Date: Fri, 9 Jun 2006 13:34:30 +0000 (-0400) Subject: NFSv4: Ensure that referral mounts bind to a reserved port X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=87e4ba1a62af8e05ee3e8f8aaca622714386ffb0;p=linux-beck.git NFSv4: Ensure that referral mounts bind to a reserved port Signed-off-by: Trond Myklebust --- 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)) {