diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-11-21 12:38:21 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-11-21 12:38:21 +0000 |
| commit | da654d9070b227da9238a9ca4a3f01b3429b08f0 (patch) | |
| tree | dce0fefe05804627c6f74dba7f2e06baab5e0272 /sys/miscfs/procfs | |
| parent | 93abfafb05fd271275032c15ed4ca0c705d69a2a (diff) | |
Notes
Diffstat (limited to 'sys/miscfs/procfs')
| -rw-r--r-- | sys/miscfs/procfs/procfs.h | 2 | ||||
| -rw-r--r-- | sys/miscfs/procfs/procfs_mem.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/miscfs/procfs/procfs.h b/sys/miscfs/procfs/procfs.h index f5547ee2ed45..bd6a5540016f 100644 --- a/sys/miscfs/procfs/procfs.h +++ b/sys/miscfs/procfs/procfs.h @@ -97,7 +97,7 @@ struct pfsnode { #define CHECKIO(p1, p2) \ ((p1) == (p2) || \ (PRISON_CHECK(p1, p2) && \ - ((((p1)->p_cred->pc_ucred->cr_uid == (p2)->p_cred->p_ruid) && \ + ((((p1)->p_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) || \ diff --git a/sys/miscfs/procfs/procfs_mem.c b/sys/miscfs/procfs/procfs_mem.c index 963fb3a22cdf..521bd5bbc551 100644 --- a/sys/miscfs/procfs/procfs_mem.c +++ b/sys/miscfs/procfs/procfs_mem.c @@ -343,7 +343,7 @@ int procfs_kmemaccess(curp) int i; struct ucred *cred; - cred = curp->p_cred->pc_ucred; + cred = curp->p_ucred; if (suser(curp)) return 1; |
