diff options
| author | Sean Eric Fagan <sef@FreeBSD.org> | 1999-11-20 18:22:14 +0000 |
|---|---|---|
| committer | Sean Eric Fagan <sef@FreeBSD.org> | 1999-11-20 18:22:14 +0000 |
| commit | 13baacebcb156197f985fd9501a6c5258599fc8e (patch) | |
| tree | 089d63378ea2f5d37f0a8ccacf370a26cae65105 /sys/miscfs/procfs | |
| parent | 2e0caf2b17fca2c346fb7eccda02b8bbeb4a7feb (diff) | |
Notes
Diffstat (limited to 'sys/miscfs/procfs')
| -rw-r--r-- | sys/miscfs/procfs/procfs.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/miscfs/procfs/procfs.h b/sys/miscfs/procfs/procfs.h index 07c6da215a58..f5547ee2ed45 100644 --- a/sys/miscfs/procfs/procfs.h +++ b/sys/miscfs/procfs/procfs.h @@ -95,12 +95,13 @@ struct pfsnode { * Evaluates to 1 if access is allowed. */ #define CHECKIO(p1, p2) \ - (PRISON_CHECK(p1, p2) && \ + ((p1) == (p2) || \ + (PRISON_CHECK(p1, p2) && \ ((((p1)->p_cred->pc_ucred->cr_uid == (p2)->p_cred->p_ruid) && \ ((p1)->p_cred->p_ruid == (p2)->p_cred->p_ruid) && \ ((p1)->p_cred->p_svuid == (p2)->p_cred->p_ruid) && \ ((p2)->p_flag & P_SUGID) == 0) || \ - (suser_xxx(0, (p1), PRISON_ROOT) == 0))) + (suser_xxx(0, (p1), PRISON_ROOT) == 0)))) #define PROCFS_FILENO(pid, type) \ (((type) < Pproc) ? \ |
