diff options
author | phk <phk@FreeBSD.org> | 1999-11-21 12:38:21 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-11-21 12:38:21 +0000 |
commit | d19d6e6b458e551bcea54f2b5ed1015dc467182e (patch) | |
tree | dce0fefe05804627c6f74dba7f2e06baab5e0272 /sys/miscfs | |
parent | d655bdb1cd68118a4aef6af9143d8ab360890bc8 (diff) | |
download | FreeBSD-src-d19d6e6b458e551bcea54f2b5ed1015dc467182e.zip FreeBSD-src-d19d6e6b458e551bcea54f2b5ed1015dc467182e.tar.gz |
s/p_cred->pc_ucred/p_ucred/g
Diffstat (limited to 'sys/miscfs')
-rw-r--r-- | sys/miscfs/devfs/devfs_tree.c | 4 | ||||
-rw-r--r-- | sys/miscfs/procfs/procfs.h | 2 | ||||
-rw-r--r-- | sys/miscfs/procfs/procfs_mem.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/sys/miscfs/devfs/devfs_tree.c b/sys/miscfs/devfs/devfs_tree.c index 2b97d6d..d47917a 100644 --- a/sys/miscfs/devfs/devfs_tree.c +++ b/sys/miscfs/devfs/devfs_tree.c @@ -1250,7 +1250,7 @@ devfs_open_device(char *path, int type) return (NULL); #if 0 - if ( VOP_OPEN(vn, FREAD, proc0.p_cred->pc_ucred, &proc0)) { + if ( VOP_OPEN(vn, FREAD, proc0.p_ucred, &proc0)) { vput(vn); return (NULL); } @@ -1268,7 +1268,7 @@ void devfs_close_device(struct vnode *vn) { #if 0 - VOP_CLOSE(vn, 0, proc0.p_cred->pc_ucred, &proc0) ; + VOP_CLOSE(vn, 0, proc0.p_ucred, &proc0) ; #endif vput(vn); } diff --git a/sys/miscfs/procfs/procfs.h b/sys/miscfs/procfs/procfs.h index f5547ee..bd6a554 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 963fb3a..521bd5b 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; |