aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/pseudofs
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2007-10-05 17:37:25 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2007-10-05 17:37:25 +0000
commitc1f7cf23b1c1a072d63321ca90ef09d753f7f6cd (patch)
treef6a47d3c36d6b74e75013ff9bb1483fe4c0684ab /sys/fs/pseudofs
parent5ed284e3c5b847ea93f8a078dfcd41b0a4b648c6 (diff)
downloadsrc-c1f7cf23b1c1a072d63321ca90ef09d753f7f6cd.tar.gz
src-c1f7cf23b1c1a072d63321ca90ef09d753f7f6cd.zip
Use the correct pid when checking to see whether or not the /proc/<pid>
directory itself (rather than any of its contents) is visible to the current thread. MFC after: 1 week PR: kern/90063 Submitted by: john of 8192.net Approved by: re (kensmith)
Notes
Notes: svn path=/head/; revision=172453
Diffstat (limited to 'sys/fs/pseudofs')
-rw-r--r--sys/fs/pseudofs/pseudofs_vnops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/pseudofs/pseudofs_vnops.c b/sys/fs/pseudofs/pseudofs_vnops.c
index 9f7eba09a2cd..354b01ad7baa 100644
--- a/sys/fs/pseudofs/pseudofs_vnops.c
+++ b/sys/fs/pseudofs/pseudofs_vnops.c
@@ -417,7 +417,7 @@ pfs_lookup(struct vop_cachedlookup_args *va)
got_pnode:
pfs_assert_not_owned(pd);
pfs_assert_not_owned(pn);
- visible = pfs_visible(curthread, pn, pvd->pvd_pid, NULL);
+ visible = pfs_visible(curthread, pn, pid, NULL);
if (!visible) {
error = ENOENT;
goto failed;