diff options
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/i386/mem.c | 4 | ||||
-rw-r--r-- | sys/i386/i386/sys_machdep.c | 2 | ||||
-rw-r--r-- | sys/i386/ibcs2/ibcs2_util.c | 4 | ||||
-rw-r--r-- | sys/i386/ibcs2/ibcs2_xenix.c | 2 | ||||
-rw-r--r-- | sys/i386/ibcs2/imgact_coff.c | 6 | ||||
-rw-r--r-- | sys/i386/isa/pcvt/pcvt_ext.c | 2 | ||||
-rw-r--r-- | sys/i386/isa/spigot.c | 4 | ||||
-rw-r--r-- | sys/i386/linux/linux_machdep.c | 2 |
8 files changed, 13 insertions, 13 deletions
diff --git a/sys/i386/i386/mem.c b/sys/i386/i386/mem.c index c8fdd2a..94851fd 100644 --- a/sys/i386/i386/mem.c +++ b/sys/i386/i386/mem.c @@ -116,7 +116,7 @@ mmopen(dev_t dev, int flags, int fmt, struct thread *td) case 0: case 1: if (flags & FWRITE) { - error = securelevel_gt(td->td_proc->p_ucred, 0); + error = securelevel_gt(td->td_ucred, 0); if (error != 0) return (error); } @@ -125,7 +125,7 @@ mmopen(dev_t dev, int flags, int fmt, struct thread *td) error = suser_td(td); if (error != 0) return (error); - error = securelevel_gt(td->td_proc->p_ucred, 0); + error = securelevel_gt(td->td_ucred, 0); if (error != 0) return (error); td->td_frame->tf_eflags |= PSL_IOPL; diff --git a/sys/i386/i386/sys_machdep.c b/sys/i386/i386/sys_machdep.c index b7beea9..58e1a22 100644 --- a/sys/i386/i386/sys_machdep.c +++ b/sys/i386/i386/sys_machdep.c @@ -185,7 +185,7 @@ i386_set_ioperm(td, args) if ((error = suser_td(td)) != 0) return (error); - if ((error = securelevel_gt(td->td_proc->p_ucred, 0)) != 0) + if ((error = securelevel_gt(td->td_ucred, 0)) != 0) return (error); /* * XXX diff --git a/sys/i386/ibcs2/ibcs2_util.c b/sys/i386/ibcs2/ibcs2_util.c index 8b0720a..2172433 100644 --- a/sys/i386/ibcs2/ibcs2_util.c +++ b/sys/i386/ibcs2/ibcs2_util.c @@ -140,11 +140,11 @@ ibcs2_emul_find(td, sgp, prefix, path, pbuf, cflag) return error; } - if ((error = VOP_GETATTR(nd.ni_vp, &vat, td->td_proc->p_ucred, td)) != 0) { + if ((error = VOP_GETATTR(nd.ni_vp, &vat, td->td_ucred, td)) != 0) { goto done; } - if ((error = VOP_GETATTR(ndroot.ni_vp, &vatroot, td->td_proc->p_ucred, td)) + if ((error = VOP_GETATTR(ndroot.ni_vp, &vatroot, td->td_ucred, td)) != 0) { goto done; } diff --git a/sys/i386/ibcs2/ibcs2_xenix.c b/sys/i386/ibcs2/ibcs2_xenix.c index 0e40c45..1e06a4b 100644 --- a/sys/i386/ibcs2/ibcs2_xenix.c +++ b/sys/i386/ibcs2/ibcs2_xenix.c @@ -194,7 +194,7 @@ xenix_scoinfo(struct thread *td, struct xenix_scoinfo_args *uap) int xenix_eaccess(struct thread *td, struct xenix_eaccess_args *uap) { - struct ucred *cred = td->td_proc->p_ucred; + struct ucred *cred = td->td_ucred; struct vnode *vp; struct nameidata nd; int error, flags; diff --git a/sys/i386/ibcs2/imgact_coff.c b/sys/i386/ibcs2/imgact_coff.c index 6d5621f..fd89db4 100644 --- a/sys/i386/ibcs2/imgact_coff.c +++ b/sys/i386/ibcs2/imgact_coff.c @@ -183,7 +183,7 @@ coff_load_file(struct thread *td, char *name) goto fail; } - if ((error = VOP_GETATTR(vp, &attr, p->p_ucred, td)) != 0) + if ((error = VOP_GETATTR(vp, &attr, td->td_ucred, td)) != 0) goto fail; if ((vp->v_mount->mnt_flag & MNT_NOEXEC) @@ -196,10 +196,10 @@ coff_load_file(struct thread *td, char *name) goto fail; } - if ((error = VOP_ACCESS(vp, VEXEC, p->p_ucred, td)) != 0) + if ((error = VOP_ACCESS(vp, VEXEC, td->td_ucred, td)) != 0) goto fail; - if ((error = VOP_OPEN(vp, FREAD, p->p_ucred, td)) != 0) + if ((error = VOP_OPEN(vp, FREAD, td->td_ucred, td)) != 0) goto fail; /* diff --git a/sys/i386/isa/pcvt/pcvt_ext.c b/sys/i386/isa/pcvt/pcvt_ext.c index 9e3cc44..8e72849 100644 --- a/sys/i386/isa/pcvt/pcvt_ext.c +++ b/sys/i386/isa/pcvt/pcvt_ext.c @@ -2619,7 +2619,7 @@ usl_vt_ioctl(dev_t dev, int cmd, caddr_t data, int flag, struct thread *td) error = suser_td(td); if (error != 0) return (error); - error = securelevel_gt(p->p_ucred, 0); + error = securelevel_gt(td->td_ucred, 0); if (error != 0) return (error); diff --git a/sys/i386/isa/spigot.c b/sys/i386/isa/spigot.c index 23cbd3c..cc51b18 100644 --- a/sys/i386/isa/spigot.c +++ b/sys/i386/isa/spigot.c @@ -178,7 +178,7 @@ struct spigot_softc *ss = (struct spigot_softc *)&spigot_softc[UNIT(dev)]; error = suser_td(td); if (error != 0) return error; - error = securelevel_gt(td->td_proc->p_ucred, 0); + error = securelevel_gt(td->td_ucred, 0); if (error != 0) return error; #endif @@ -235,7 +235,7 @@ struct spigot_info *info; error = suser_td(td); if (error != 0) return error; - error = securelevel_gt(td->td_proc->p_ucred, 0); + error = securelevel_gt(td->td_ucred, 0); if (error) return error; #endif diff --git a/sys/i386/linux/linux_machdep.c b/sys/i386/linux/linux_machdep.c index 9954026..33a4ee2 100644 --- a/sys/i386/linux/linux_machdep.c +++ b/sys/i386/linux/linux_machdep.c @@ -561,7 +561,7 @@ linux_iopl(struct thread *td, struct linux_iopl_args *args) return (EINVAL); if ((error = suser_td(td)) != 0) return (error); - if ((error = securelevel_gt(td->td_proc->p_ucred, 0)) != 0) + if ((error = securelevel_gt(td->td_ucred, 0)) != 0) return (error); td->td_frame->tf_eflags = (td->td_frame->tf_eflags & ~PSL_IOPL) | (args->level * (PSL_IOPL / 3)); |