patch-2.1.100 linux/net/wanrouter/wanmain.c
Next file: linux/net/x25/af_x25.c
Previous file: linux/net/rose/af_rose.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Wed May 6 10:56:08 1998
- Orig file:
v2.1.99/linux/net/wanrouter/wanmain.c
- Orig date:
Sat May 2 14:19:56 1998
diff -u --recursive --new-file v2.1.99/linux/net/wanrouter/wanmain.c linux/net/wanrouter/wanmain.c
@@ -371,7 +371,7 @@
struct proc_dir_entry* dent;
wan_device_t* wandev;
- if (!suser())
+ if (!capable(CAP_NET_ADMIN))
return -EPERM;
if ((cmd >> 8) != ROUTER_IOCTL)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov