patch-2.1.100 linux/drivers/net/ipddp.c

Next file: linux/drivers/net/ppp.c
Previous file: linux/drivers/net/ewrk3.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.99/linux/drivers/net/ipddp.c linux/drivers/net/ipddp.c
@@ -307,7 +307,7 @@
 {
         struct ipddp_route *rt = (struct ipddp_route *)ifr->ifr_data;
 
-        if(!suser())
+        if(!capable(CAP_NET_ADMIN))
                 return -EPERM;
 
         switch(cmd)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov