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

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

diff -u --recursive --new-file v2.2.12/linux/drivers/net/ppp.c linux/drivers/net/ppp.c
@@ -371,6 +371,9 @@
 ppp_tty_open (struct tty_struct *tty)
 {
 	struct ppp *ppp;
+	
+	if(!capable(CAP_NET_ADMIN))
+		return -EPERM;
 
 	/*
 	 * Allocate a ppp structure to use.

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