aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/wi
diff options
context:
space:
mode:
authorBill Paul <wpaul@FreeBSD.org>2000-09-07 17:05:12 +0000
committerBill Paul <wpaul@FreeBSD.org>2000-09-07 17:05:12 +0000
commit2705f230737e049eb3d463087e7c72465dea0e6a (patch)
tree5956ca7c162dc78d4a97ac0d9da2b32b2aeb67d4 /sys/dev/wi
parent281ec158d708bba86eab8ca47f281e6ee180b69a (diff)
Notes
Diffstat (limited to 'sys/dev/wi')
-rw-r--r--sys/dev/wi/if_wi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/wi/if_wi.c b/sys/dev/wi/if_wi.c
index df6fb2ac3254..32fef23db642 100644
--- a/sys/dev/wi/if_wi.c
+++ b/sys/dev/wi/if_wi.c
@@ -1008,6 +1008,9 @@ static int wi_ioctl(ifp, command, data)
error = copyin(ifr->ifr_data, &wreq, sizeof(wreq));
if (error)
break;
+ /* Don't show WEP keys to non-root users. */
+ if (wreq.wi_type == WI_RID_DEFLT_CRYPT_KEYS && suser(p))
+ break;
if (wreq.wi_type == WI_RID_IFACE_STATS) {
bcopy((char *)&sc->wi_stats, (char *)&wreq.wi_val,
sizeof(sc->wi_stats));