patch-2.2.15 linux/drivers/net/sbni.c
Next file: linux/drivers/net/sdlamain.c
Previous file: linux/drivers/net/rtl8139.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Fri Apr 21 12:46:19 2000
- Orig file:
v2.2.14/drivers/net/sbni.c
- Orig date:
Tue Jan 4 21:18:51 2000
diff -u --new-file --recursive --exclude-from ../../exclude v2.2.14/drivers/net/sbni.c linux/drivers/net/sbni.c
@@ -1223,6 +1223,8 @@
}
case SIOCDEVRESINSTATS:
{
+ if(!capable(CAP_NET_ADMIN))
+ return -EPERM;
DP( printk("%s: SIOCDEVRESINSTATS\n",dev->name); )
lp->in_stats.all_rx_number = 0;
lp->in_stats.bad_rx_number = 0;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)