From fa673eef8bdcf15c2cb99774cc6f4f74f57fa31b Mon Sep 17 00:00:00 2001 From: Markus Friedl Date: Sat, 30 Mar 2002 18:52:09 +0000 Subject: missing suser on SIOCS80211NWID --- sys/dev/ic/if_wi.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sys/dev/ic/if_wi.c') diff --git a/sys/dev/ic/if_wi.c b/sys/dev/ic/if_wi.c index 7b450873324..536704fe7bb 100644 --- a/sys/dev/ic/if_wi.c +++ b/sys/dev/ic/if_wi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_wi.c,v 1.28 2002/03/30 18:49:28 markus Exp $ */ +/* $OpenBSD: if_wi.c,v 1.29 2002/03/30 18:52:08 markus Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -124,7 +124,7 @@ u_int32_t widebug = WIDEBUG; #if !defined(lint) && !defined(__OpenBSD__) static const char rcsid[] = - "$OpenBSD: if_wi.c,v 1.28 2002/03/30 18:49:28 markus Exp $"; + "$OpenBSD: if_wi.c,v 1.29 2002/03/30 18:52:08 markus Exp $"; #endif /* lint */ #ifdef foo @@ -1330,6 +1330,9 @@ wi_ioctl(ifp, command, data) } break; case SIOCS80211NWID: + error = suser(p->p_ucred, &p->p_acflag); + if (error) + break; error = copyin(ifr->ifr_data, &nwid, sizeof(nwid)); if (error != 0) break; -- cgit v1.2.3