patch-2.1.100 linux/net/x25/af_x25.c
Next file: linux/scripts/Configure
Previous file: linux/net/wanrouter/wanmain.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/x25/af_x25.c
-  Orig date: 
Tue Apr 14 14:29:27 1998
diff -u --recursive --new-file v2.1.99/linux/net/x25/af_x25.c linux/net/x25/af_x25.c
@@ -1096,7 +1096,7 @@
 
 		case SIOCADDRT:
 		case SIOCDELRT:
-			if (!suser()) return -EPERM;
+			if (!capable(CAP_NET_ADMIN)) return -EPERM;
 			return x25_route_ioctl(cmd, (void *)arg);
 
 		case SIOCX25GSUBSCRIP:
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov