patch-2.3.99-pre1 linux/drivers/net/hamradio/pi2.c

Next file: linux/drivers/net/hamradio/pt.c
Previous file: linux/drivers/net/hamradio/hdlcdrv.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.51/linux/drivers/net/hamradio/pi2.c linux/drivers/net/hamradio/pi2.c
@@ -1580,7 +1580,7 @@
     switch (rq.cmd) {
     case SIOCSPIPARAM:
 
-	if (!suser())
+	if (!capable(CAP_NET_ADMIN))
 	    return -EPERM;
 	save_flags(flags);
 	cli();
@@ -1597,7 +1597,7 @@
 
     case SIOCSPIDMA:
 
-	if (!suser())
+	if (!capable(CAP_SYS_RAWIO))
 	    return -EPERM;
 	ret = 0;
 	if (dev->base_addr & 2) {   /* if A channel */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)