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