File: 04-user_ioctl.patch

package info (click to toggle)
broadcom-sta 6.30.223.271-28
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid
  • size: 18,788 kB
  • sloc: ansic: 28,297; makefile: 317; xml: 36; sh: 14
file content (26 lines) | stat: -rw-r--r-- 781 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: Cyril Lacoux <clacoux@easter-eggs.com>
Date: Mon, 19 Nov 2012 12:02:30 +0000
Subject: Allow normal users to send ioctl requests

Origin: https://bugs.debian.org/672677
---
 amd64/src/wl/sys/wl_linux.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/amd64/src/wl/sys/wl_linux.c b/amd64/src/wl/sys/wl_linux.c
index 947cef3..23d71c6 100644
--- a/amd64/src/wl/sys/wl_linux.c
+++ b/amd64/src/wl/sys/wl_linux.c
@@ -1659,11 +1659,7 @@ wl_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
 	}
 
 	WL_LOCK(wl);
-	if (!capable(CAP_NET_ADMIN)) {
-		bcmerror = BCME_EPERM;
-	} else {
-		bcmerror = wlc_ioctl(wl->wlc, ioc.cmd, buf, ioc.len, wlif->wlcif);
-	}
+	bcmerror = wlc_ioctl(wl->wlc, ioc.cmd, buf, ioc.len, wlif->wlcif);
 	WL_UNLOCK(wl);
 
 done1: