patch-2.1.100 linux/drivers/net/eql.c
Next file: linux/drivers/net/ewrk3.c
Previous file: linux/drivers/net/eepro100.c
Back to the patch index
Back to the overall index
- Lines: 10
- Date:
Wed May 6 10:56:04 1998
- Orig file:
v2.1.99/linux/drivers/net/eql.c
- Orig date:
Thu Feb 12 20:56:08 1998
diff -u --recursive --new-file v2.1.99/linux/drivers/net/eql.c linux/drivers/net/eql.c
@@ -329,7 +329,8 @@
static int eql_ioctl(struct device *dev, struct ifreq *ifr, int cmd)
{
- if(cmd!=EQL_GETMASTRCFG && cmd!=EQL_GETSLAVECFG && !suser())
+ if(cmd!=EQL_GETMASTRCFG && cmd!=EQL_GETSLAVECFG &&
+ !capable(CAP_NET_ADMIN))
return -EPERM;
switch (cmd)
{
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov