summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatthieu <matthieu@openbsd.org>2016-03-28 09:08:22 +0000
committermatthieu <matthieu@openbsd.org>2016-03-28 09:08:22 +0000
commit735bcd6f27428c0d0363232b86ea609d225a8d05 (patch)
treed9a11407df0c30f6818621521118fce25bddb2e1
parentRemove left-over debug line. (diff)
downloadwireguard-openbsd-735bcd6f27428c0d0363232b86ea609d225a8d05.tar.xz
wireguard-openbsd-735bcd6f27428c0d0363232b86ea609d225a8d05.zip
OpenBSD has stopped using the SVr4 KDENABIO/KDDISABIO ioctls for at
least 10 years. No need for special treatement on i386. ok deraadt@, millert@, jca@
-rw-r--r--sys/dev/wscons/wsdisplay_compat_usl.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/sys/dev/wscons/wsdisplay_compat_usl.c b/sys/dev/wscons/wsdisplay_compat_usl.c
index 2b6be4afc0c..3ebfef4b60a 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.29 2016/03/03 18:00:49 naddy Exp $ */
+/* $OpenBSD: wsdisplay_compat_usl.c,v 1.30 2016/03/28 09:08:22 matthieu Exp $ */
/* $NetBSD: wsdisplay_compat_usl.c,v 1.12 2000/03/23 07:01:47 thorpej Exp $ */
/*
@@ -392,14 +392,6 @@ wsdisplay_usl_ioctl2(struct wsdisplay_softc *sc, struct wsscreen *scr,
#undef d
return (0);
-#if defined(__i386__)
- case KDENABIO:
- if (suser(p, 0) || securelevel > 0)
- return (EPERM);
- /* FALLTHROUGH */
- case KDDISABIO:
- return (0);
-#else
case KDENABIO:
case KDDISABIO:
/*
@@ -407,7 +399,7 @@ wsdisplay_usl_ioctl2(struct wsdisplay_softc *sc, struct wsscreen *scr,
* issue these ioctls anyway.
*/
return (0);
-#endif
+
case KDSETRAD:
/* XXX ignore for now */
return (0);