patch-2.3.99-pre1 linux/drivers/net/skfp/skfddi.c

Next file: linux/drivers/net/sunhme.c
Previous file: linux/drivers/net/skfp/drvfbi.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.51/linux/drivers/net/skfp/skfddi.c linux/drivers/net/skfp/skfddi.c
@@ -1249,7 +1249,7 @@
 		copy_to_user(ioc.data, skfp_ctl_get_stats(dev), ioc.len);
 		break;
 	case SKFP_CLR_STATS:	/* Zero out the driver statistics */
-		if (suser()) {
+		if (!capable(CAP_NET_ADMIN)) {
 			memset(&lp->MacStat, 0, sizeof(lp->MacStat));
 		} else {
 			status = -EPERM;

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