patch-2.1.132 linux/net/appletalk/ddp.c
Next file: linux/net/ax25/af_ax25.c
Previous file: linux/net/Makefile
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Thu Dec 17 09:07:45 1998
- Orig file:
v2.1.131/linux/net/appletalk/ddp.c
- Orig date:
Thu Nov 19 09:56:29 1998
diff -u --recursive --new-file v2.1.131/linux/net/appletalk/ddp.c linux/net/appletalk/ddp.c
@@ -912,7 +912,7 @@
break;
case SIOCSARP:
- if(!suser())
+ if(!capable(CAP_NET_ADMIN))
return (-EPERM);
if(sa->sat_family != AF_APPLETALK)
return (-EINVAL);
@@ -961,7 +961,7 @@
break;
case SIOCDARP:
- if(!suser())
+ if(!capable(CAP_NET_ADMIN))
return (-EPERM);
if(sa->sat_family != AF_APPLETALK)
return (-EINVAL);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov