patch-2.1.127 linux/drivers/net/eepro100.c
Next file: linux/drivers/net/ne2.c
Previous file: linux/drivers/net/de4x5.c
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Sat Oct 24 08:53:15 1998
-  Orig file: 
v2.1.126/linux/drivers/net/eepro100.c
-  Orig date: 
Fri Oct 23 22:01:21 1998
diff -u --recursive --new-file v2.1.126/linux/drivers/net/eepro100.c linux/drivers/net/eepro100.c
@@ -1384,7 +1384,7 @@
 		data[3] = mdio_read(ioaddr, data[0], data[1]);
 		return 0;
 	case SIOCDEVPRIVATE+2:		/* Write the specified MII register */
-		if (!suser())
+		if (!capable(CAP_NET_ADMIN))
 			return -EPERM;
 		mdio_write(ioaddr, data[0], data[1], data[2]);
 		return 0;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov