summaryrefslogtreecommitdiffstats
path: root/sys/fs/specfs
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2002-02-27 18:32:23 +0000
committerjhb <jhb@FreeBSD.org>2002-02-27 18:32:23 +0000
commit3706cd350927f08fa8742cce9448c9ba8e4d6b2c (patch)
treede74317436bc6bf8211535e1dbda3f6762d05582 /sys/fs/specfs
parentec01b5bdbc40025303ba133be03a747c8dc62a2c (diff)
downloadFreeBSD-src-3706cd350927f08fa8742cce9448c9ba8e4d6b2c.zip
FreeBSD-src-3706cd350927f08fa8742cce9448c9ba8e4d6b2c.tar.gz
Simple p_ucred -> td_ucred changes to start using the per-thread ucred
reference.
Diffstat (limited to 'sys/fs/specfs')
-rw-r--r--sys/fs/specfs/spec_vnops.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/fs/specfs/spec_vnops.c b/sys/fs/specfs/spec_vnops.c
index 7887ddb..6c4fcd9 100644
--- a/sys/fs/specfs/spec_vnops.c
+++ b/sys/fs/specfs/spec_vnops.c
@@ -177,7 +177,7 @@ spec_open(ap)
* When running in secure mode, do not allow opens
* for writing if the disk is mounted.
*/
- error = securelevel_ge(td->td_proc->p_ucred, 1);
+ error = securelevel_ge(td->td_ucred, 1);
if (error && vfs_mountedon(vp))
return (error);
@@ -185,7 +185,7 @@ spec_open(ap)
* When running in very secure mode, do not allow
* opens for writing of any disks.
*/
- error = securelevel_ge(td->td_proc->p_ucred, 2);
+ error = securelevel_ge(td->td_ucred, 2);
if (error)
return (error);
}
@@ -729,8 +729,8 @@ spec_getpages(ap)
/* B_PHYS is not set, but it is nice to fill this in. */
KASSERT(bp->b_rcred == NOCRED, ("leaking read ucred"));
KASSERT(bp->b_wcred == NOCRED, ("leaking write ucred"));
- bp->b_rcred = crhold(curthread->td_proc->p_ucred);
- bp->b_wcred = crhold(curthread->td_proc->p_ucred);
+ bp->b_rcred = crhold(curthread->td_ucred);
+ bp->b_wcred = crhold(curthread->td_ucred);
bp->b_blkno = blkno;
bp->b_lblkno = blkno;
pbgetvp(ap->a_vp, bp);
OpenPOWER on IntegriCloud