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

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