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

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

diff -u --recursive --new-file v2.1.99/linux/drivers/net/dlci.c linux/drivers/net/dlci.c
@@ -322,7 +322,7 @@
 {
 	struct dlci_local *dlp;
 
-	if (!suser())
+	if (!capable(CAP_NET_ADMIN))
 		return(-EPERM);
 
 	dlp = dev->priv;
@@ -542,7 +542,7 @@
 	struct dlci_add add;
 	int err;
 	
-	if (!suser())
+	if (!capable(CAP_NET_ADMIN))
 		return(-EPERM);
 
 	if(copy_from_user(&add, arg, sizeof(struct dlci_add)))

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