diff options
author | phk <phk@FreeBSD.org> | 1999-05-04 08:00:10 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-05-04 08:00:10 +0000 |
commit | 49cc1d7cc90d995f763f0f6f92b6a60ddadbc4df (patch) | |
tree | 4702569d79e73e8a9afeb2499afd47752723c84f /sys/miscfs | |
parent | 61851a14d7f0271bacc976afef8762bdfa4b29d7 (diff) | |
download | FreeBSD-src-49cc1d7cc90d995f763f0f6f92b6a60ddadbc4df.zip FreeBSD-src-49cc1d7cc90d995f763f0f6f92b6a60ddadbc4df.tar.gz |
Add even more () to CHECKIO which by now feels positively LISPish.
Submitted by: bde
Reviewed by: phk
Diffstat (limited to 'sys/miscfs')
-rw-r--r-- | sys/miscfs/procfs/procfs.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/miscfs/procfs/procfs.h b/sys/miscfs/procfs/procfs.h index 0c2698a..b758d06 100644 --- a/sys/miscfs/procfs/procfs.h +++ b/sys/miscfs/procfs/procfs.h @@ -37,7 +37,7 @@ * @(#)procfs.h 8.9 (Berkeley) 5/14/95 * * From: - * $Id: procfs.h,v 1.23 1999/04/28 11:37:18 phk Exp $ + * $Id: procfs.h,v 1.24 1999/04/30 13:04:20 phk Exp $ */ /* @@ -94,10 +94,11 @@ struct pfsnode { */ #define CHECKIO(p1, p2) \ (PRISON_CHECK(p1, p2) && \ - (((p1)->p_cred->pc_ucred->cr_uid == (p2)->p_cred->p_ruid) && \ + ((((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((p1)) == 0)) + ((p2)->p_flag & P_SUGID) == 0) || \ + (suser_xxx(0, (p1), PRISON_ROOT) == 0))) /* * Format of a directory entry in /proc, ... |