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)
This commit is contained in:
parent
5ed284e3c5
commit
c1f7cf23b1
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user