patch-2.3.99-pre1 linux/drivers/net/wan/sdla.c

Next file: linux/drivers/net/wan/syncppp.c
Previous file: linux/drivers/net/wan/sbni.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.51/linux/drivers/net/wan/sdla.c linux/drivers/net/wan/sdla.c
@@ -1247,7 +1247,7 @@
 {
 	struct frad_local *flp;
 
-	if(!suser())
+	if(!capable(CAP_NET_ADMIN))
 		return -EPERM;
 		
 	flp = dev->priv;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)