patch-2.1.100 linux/net/ipv4/devinet.c
Next file: linux/net/ipv4/fib_frontend.c
Previous file: linux/net/ipv4/af_inet.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Wed May 6 10:56:07 1998
- Orig file:
v2.1.99/linux/net/ipv4/devinet.c
- Orig date:
Wed Apr 1 20:11:55 1998
diff -u --recursive --new-file v2.1.99/linux/net/ipv4/devinet.c linux/net/ipv4/devinet.c
@@ -435,7 +435,7 @@
break;
case SIOCSIFFLAGS:
- if (!suser())
+ if (!capable(CAP_NET_ADMIN))
return -EACCES;
rtnl_lock();
exclusive = 1;
@@ -444,7 +444,7 @@
case SIOCSIFBRDADDR: /* Set the broadcast address */
case SIOCSIFDSTADDR: /* Set the destination address */
case SIOCSIFNETMASK: /* Set the netmask for the interface */
- if (!suser())
+ if (!capable(CAP_NET_ADMIN))
return -EACCES;
if (sin->sin_family != AF_INET)
return -EINVAL;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov