Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 26097
b: refs/heads/master
c: 848ef85
h: refs/heads/master
i:
  26095: 65e310b
v: v3
  • Loading branch information
Jean Tourrilhes authored and John W. Linville committed Apr 19, 2006
1 parent e260a09 commit 8c8cdbd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a392149ee14d1631d8632060c1fc3082729f83c8
refs/heads/master: 848ef8555296f25d9226d3bc43ce4028835ed633
8 changes: 8 additions & 0 deletions trunk/net/core/wireless.c
Original file line number Diff line number Diff line change
Expand Up @@ -1726,6 +1726,14 @@ int wireless_rtnetlink_get(struct net_device * dev,
if(!IW_IS_GET(request->cmd))
return -EOPNOTSUPP;

/* If command is `get the encoding parameters', check if
* the user has the right to do it */
if (request->cmd == SIOCGIWENCODE ||
request->cmd == SIOCGIWENCODEEXT) {
if (!capable(CAP_NET_ADMIN))
return -EPERM;
}

/* Special cases */
if(request->cmd == SIOCGIWSTATS)
/* Get Wireless Stats */
Expand Down

0 comments on commit 8c8cdbd

Please sign in to comment.