aboutsummaryrefslogtreecommitdiffstats
path: root/fs/lockd/clntlock.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2008-12-23 15:21:38 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2008-12-23 15:21:38 -0500
commit0cb2659b818eca99235e17c04291cfa9985c14f7 (patch)
tree48fc176e1e1e8a6f771e664799c26df1d72e9f69 /fs/lockd/clntlock.c
parent50a737f86dbf99daf3a8dcbdf778a3be36bb2a39 (diff)
NLM: allow lockd requests from an unprivileged port
If the admin has specified the "noresvport" option for an NFS mount point, the kernel's NFS client uses an unprivileged source port for the main NFS transport. The kernel's lockd client should use an unprivileged port in this case as well. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/lockd/clntlock.c')
-rw-r--r--fs/lockd/clntlock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/lockd/clntlock.c b/fs/lockd/clntlock.c
index 94d42cc4e39..1f3b0fc0d35 100644
--- a/fs/lockd/clntlock.c
+++ b/fs/lockd/clntlock.c
@@ -61,7 +61,7 @@ struct nlm_host *nlmclnt_init(const struct nlmclnt_initdata *nlm_init)
61 61
62 host = nlmclnt_lookup_host(nlm_init->address, nlm_init->addrlen, 62 host = nlmclnt_lookup_host(nlm_init->address, nlm_init->addrlen,
63 nlm_init->protocol, nlm_version, 63 nlm_init->protocol, nlm_version,
64 nlm_init->hostname); 64 nlm_init->hostname, nlm_init->noresvport);
65 if (host == NULL) { 65 if (host == NULL) {
66 lockd_down(); 66 lockd_down();
67 return ERR_PTR(-ENOLCK); 67 return ERR_PTR(-ENOLCK);