summaryrefslogtreecommitdiff
path: root/sys/net80211
diff options
context:
space:
mode:
authorUwe Stuehler <uwe@cvs.openbsd.org>2005-04-02 22:00:50 +0000
committerUwe Stuehler <uwe@cvs.openbsd.org>2005-04-02 22:00:50 +0000
commit3301937a1318f4b8d80ded212fb6a5767b69f712 (patch)
treea8a7aef87d4c3b5416cee008d5b032c86ff95736 /sys/net80211
parente64e924d5b18ad3a95a573810ac25fb756ec9176 (diff)
Protect SIOCSIFMTU, too.
Diffstat (limited to 'sys/net80211')
-rw-r--r--sys/net80211/ieee80211_ioctl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_ioctl.c b/sys/net80211/ieee80211_ioctl.c
index 8166f7af890..32c04a81af7 100644
--- a/sys/net80211/ieee80211_ioctl.c
+++ b/sys/net80211/ieee80211_ioctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee80211_ioctl.c,v 1.9 2005/04/01 16:52:25 uwe Exp $ */
+/* $OpenBSD: ieee80211_ioctl.c,v 1.10 2005/04/02 22:00:49 uwe Exp $ */
/* $NetBSD: ieee80211_ioctl.c,v 1.15 2004/05/06 02:58:16 dyoung Exp $ */
/*-
@@ -1094,6 +1094,8 @@ ieee80211_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
txpower->i_val = ic->ic_txpower;
break;
case SIOCSIFMTU:
+ if ((error = suser(curproc, 0)) != 0)
+ break;
ifr = (struct ifreq *)data;
if (!(IEEE80211_MTU_MIN <= ifr->ifr_mtu &&
ifr->ifr_mtu <= IEEE80211_MTU_MAX))