mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
Require privilege to flush the signal cache on if_an and if_wi 802.11
cards. Reviewed by: imp (if_wi)
This commit is contained in:
parent
f4ef616f98
commit
dcce7232ef
2 changed files with 6 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -1736,6 +1736,9 @@ wi_ioctl(ifp, command, data)
|
|||
}
|
||||
#ifdef WICACHE
|
||||
else if (wreq.wi_type == WI_RID_ZERO_CACHE) {
|
||||
error = suser(td);
|
||||
if (error)
|
||||
break;
|
||||
sc->wi_sigitems = sc->wi_nextitem = 0;
|
||||
} else if (wreq.wi_type == WI_RID_READ_CACHE) {
|
||||
char *pt = (char *)&wreq.wi_val;
|
||||
|
|
|
|||
Loading…
Reference in a new issue