patch-2.3.99-pre1 linux/drivers/net/pcnet32.c
Next file: linux/drivers/net/plip.c
Previous file: linux/drivers/net/pcmcia/tulip_cb.c
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Mon Mar 13 09:50:16 2000
-  Orig file: 
v2.3.51/linux/drivers/net/pcnet32.c
-  Orig date: 
Sun Feb 20 21:12:39 2000
diff -u --recursive --new-file v2.3.51/linux/drivers/net/pcnet32.c linux/drivers/net/pcnet32.c
@@ -1445,7 +1445,7 @@
 	    lp->a.write_bcr (ioaddr, 33, phyaddr);
 	    return 0;
 	 case SIOCDEVPRIVATE+2:          /* Write the specified MII register */
-	    if (!suser())
+	    if (!capable(CAP_NET_ADMIN))
 		return -EPERM;
 	    lp->a.write_bcr (ioaddr, 33, ((data[0] & 0x1f) << 5) | (data[1] & 0x1f));
 	    lp->a.write_bcr (ioaddr, 34, data[2]);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)