diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-06-30 21:34:48 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-06-30 21:34:48 +0000 |
commit | 4c0ac263ded8f53c10fafb84a0cf047c25b626d4 (patch) | |
tree | 57686f7b047709f9d647f30076f2bb4d84dda8f2 /sys/dev/wscons | |
parent | f72513fd433fa7a329df6cf05d7faffa4965313d (diff) |
Make routines which may set PSL_IOPL consistent wrt the securelevel for
which this is allowed; ok deraadt@
Diffstat (limited to 'sys/dev/wscons')
-rw-r--r-- | sys/dev/wscons/wsdisplay_compat_usl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/wscons/wsdisplay_compat_usl.c b/sys/dev/wscons/wsdisplay_compat_usl.c index 5dcc87f09b6..cd1dcef5599 100644 --- a/sys/dev/wscons/wsdisplay_compat_usl.c +++ b/sys/dev/wscons/wsdisplay_compat_usl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wsdisplay_compat_usl.c,v 1.15 2004/04/02 04:39:51 deraadt Exp $ */ +/* $OpenBSD: wsdisplay_compat_usl.c,v 1.16 2006/06/30 21:34:47 miod Exp $ */ /* $NetBSD: wsdisplay_compat_usl.c,v 1.12 2000/03/23 07:01:47 thorpej Exp $ */ /* @@ -341,7 +341,7 @@ wsdisplay_usl_ioctl1(sc, cmd, data, flag, p) for (idx = 0; idx <= maxidx; idx++) if (wsdisplay_screenstate(sc, idx) == EBUSY) ss->v_state |= (1 << (idx + 1)); -#undef s +#undef ss return (0); #ifdef WSDISPLAY_COMPAT_PCVT @@ -426,7 +426,7 @@ wsdisplay_usl_ioctl2(sc, scr, cmd, data, flag, p) return (0); case KDENABIO: - if (suser(p, 0) || securelevel > 1) + if (suser(p, 0) || securelevel > 0) return (EPERM); /* FALLTHRU */ case KDDISABIO: |