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
-  Lines: 18
-  Date:
Wed May  6 10:56:04 1998
-  Orig file: 
v2.1.99/linux/drivers/net/dlci.c
-  Orig date: 
Mon Feb 23 18:12:05 1998
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