summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_mmap.c
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/vm/vm_mmap.c
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/vm/vm_mmap.c')
-rw-r--r--sys/vm/vm_mmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/vm/vm_mmap.c b/sys/vm/vm_mmap.c
index aafa26a..27a1ae3 100644
--- a/sys/vm/vm_mmap.c
+++ b/sys/vm/vm_mmap.c
@@ -346,7 +346,7 @@ mmap(td, uap)
* other securelevel.
* XXX this will have to go
*/
- if (securelevel_ge(td->td_proc->p_ucred, 1))
+ if (securelevel_ge(td->td_ucred, 1))
disablexworkaround = 1;
else
disablexworkaround = suser_td(td);
@@ -387,7 +387,7 @@ mmap(td, uap)
struct vattr va;
if ((error =
VOP_GETATTR(vp, &va,
- td->td_proc->p_ucred, td))) {
+ td->td_ucred, td))) {
goto done;
}
if ((va.va_flags &
@@ -1184,7 +1184,7 @@ vm_mmap(vm_map_t map, vm_offset_t *addr, vm_size_t size, vm_prot_t prot,
struct vattr vat;
int error;
- error = VOP_GETATTR(vp, &vat, td->td_proc->p_ucred, td);
+ error = VOP_GETATTR(vp, &vat, td->td_ucred, td);
if (error) {
mtx_unlock(&Giant);
return (error);
OpenPOWER on IntegriCloud