patch-2.4.3 linux/net/core/dv.c
Next file: linux/net/decnet/af_decnet.c
Previous file: linux/net/core/dev.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Sun Mar 25 18:14:25 2001
- Orig file:
v2.4.2/linux/net/core/dv.c
- Orig date:
Mon Dec 11 12:37:04 2000
diff -u --recursive --new-file v2.4.2/linux/net/core/dv.c linux/net/core/dv.c
@@ -172,7 +172,7 @@
return -EINVAL;
/* user issuing the ioctl must be a super one :) */
- if (!suser())
+ if (!capable(CAP_SYS_ADMIN))
return -EPERM;
/* Device must have a divert_blk member NOT null */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)