summaryrefslogtreecommitdiffstats
path: root/fs/lockd/svclock.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2006-03-20 19:44:06 +0100
committerTrond Myklebust <Trond.Myklebust@netapp.com>2006-03-20 19:44:06 +0100
commit7bab377fcb495ee2e5a1cd69d235f8d84c76e3af (patch)
tree67f03fbc543632ccf71075af250635201b43801b /fs/lockd/svclock.c
parentNLM: nlm_alloc_call should not immediately fail on signal (diff)
downloadlinux-7bab377fcb495ee2e5a1cd69d235f8d84c76e3af.tar.xz
linux-7bab377fcb495ee2e5a1cd69d235f8d84c76e3af.zip
lockd: Don't expose the process pid to the NLM server
Instead we use the nlm_lockowner->pid. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/lockd/svclock.c')
-rw-r--r--fs/lockd/svclock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/lockd/svclock.c b/fs/lockd/svclock.c
index 9cfced65d4a2..a525a141dd3b 100644
--- a/fs/lockd/svclock.c
+++ b/fs/lockd/svclock.c
@@ -397,6 +397,7 @@ nlmsvc_testlock(struct nlm_file *file, struct nlm_lock *lock,
(long long)fl->fl_end);
conflock->caller = "somehost"; /* FIXME */
conflock->oh.len = 0; /* don't return OH info */
+ conflock->svid = fl->fl_pid;
conflock->fl = *fl;
return nlm_lck_denied;
}