broadcom-wl-6.30.223.271-allow-user_ioctl.patch 878 B

123456789101112131415161718192021222324252627
  1. From: Cyril Lacoux <clacoux@easter-eggs.com>
  2. Date: Mon, 19 Nov 2012 12:02:30 +0000
  3. Subject: Allow normal users to send ioctl requests
  4. Origin: https://bugs.debian.org/672677
  5. ---
  6. src/wl/sys/wl_linux.c | 6 +-----
  7. 1 file changed, 1 insertion(+), 5 deletions(-)
  8. diff -Nurp broadcom-wl-6.30.223.271.orig/src/wl/sys/wl_linux.c broadcom-wl-6.30.223.271/src/wl/sys/wl_linux.c
  9. --- broadcom-wl-6.30.223.271.orig/src/wl/sys/wl_linux.c 2020-01-11 01:53:58.507062628 +0200
  10. +++ broadcom-wl-6.30.223.271/src/wl/sys/wl_linux.c 2020-01-11 02:06:15.233672677 +0200
  11. @@ -1663,11 +1663,7 @@ wl_ioctl(struct net_device *dev, struct
  12. }
  13. WL_LOCK(wl);
  14. - if (!capable(CAP_NET_ADMIN)) {
  15. - bcmerror = BCME_EPERM;
  16. - } else {
  17. - bcmerror = wlc_ioctl(wl->wlc, ioc.cmd, buf, ioc.len, wlif->wlcif);
  18. - }
  19. + bcmerror = wlc_ioctl(wl->wlc, ioc.cmd, buf, ioc.len, wlif->wlcif);
  20. WL_UNLOCK(wl);
  21. done1: