summaryrefslogtreecommitdiffstats
path: root/sys/dev/an
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2002-12-24 14:46:01 +0000
committerrwatson <rwatson@FreeBSD.org>2002-12-24 14:46:01 +0000
commitbf3546d30655e13566928122e3435d874952ae28 (patch)
treec0040261ba73a7967b61c848441f14b873d708be /sys/dev/an
parentaa1de6479fe7e33be998a7186b8847bb0a9f9425 (diff)
downloadFreeBSD-src-bf3546d30655e13566928122e3435d874952ae28.zip
FreeBSD-src-bf3546d30655e13566928122e3435d874952ae28.tar.gz
Require privilege to flush the signal cache on if_an and if_wi 802.11
cards. Reviewed by: imp (if_wi)
Diffstat (limited to 'sys/dev/an')
-rw-r--r--sys/dev/an/if_an.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/an/if_an.c b/sys/dev/an/if_an.c
index cada570..3dccf07 100644
--- a/sys/dev/an/if_an.c
+++ b/sys/dev/an/if_an.c
@@ -1328,6 +1328,9 @@ an_ioctl(ifp, command, data)
break;
#ifdef ANCACHE
if (sc->areq.an_type == AN_RID_ZERO_CACHE) {
+ error = suser(td);
+ if (error)
+ break;
sc->an_sigitems = sc->an_nextitem = 0;
break;
} else if (sc->areq.an_type == AN_RID_READ_CACHE) {
OpenPOWER on IntegriCloud