diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2001-09-26 20:22:38 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2001-09-26 20:22:38 +0000 |
| commit | 41c42188c81e1dabe6fbf3afb061cf0968414f30 (patch) | |
| tree | f58b978325fc0b4c3e5a6f1b1babbcdf1a4982ea /sys | |
| parent | ce3a32b6da533a7c4e1a794a54b3aedce0cc7b73 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/i386/linux/linux_machdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/linux/linux_machdep.c b/sys/i386/linux/linux_machdep.c index ba443bb808f9..7443aac125b2 100644 --- a/sys/i386/linux/linux_machdep.c +++ b/sys/i386/linux/linux_machdep.c @@ -560,8 +560,8 @@ linux_iopl(struct thread *td, struct linux_iopl_args *args) return (EINVAL); if ((error = suser_td(td)) != 0) return (error); - if (securelevel > 0) - return (EPERM); + if ((error = securelevel_gt(td->td_proc->p_ucred, 0)) != 0) + return (error); td->td_frame->tf_eflags = (td->td_frame->tf_eflags & ~PSL_IOPL) | (args->level * (PSL_IOPL / 3)); return (0); |
