patch-2.2.13 linux/drivers/net/slip.c

Next file: linux/drivers/net/smc-ultra.c
Previous file: linux/drivers/net/sktr.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.12/linux/drivers/net/slip.c linux/drivers/net/slip.c
@@ -831,6 +831,9 @@
 	struct slip *sl;
 	int err;
 
+	if(!capable(CAP_NET_ADMIN))
+		return -EPERM;
+		
 	MOD_INC_USE_COUNT;
 
 	/* RTnetlink lock is misused here to serialize concurrent

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