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
- Lines: 10
- Date:
Tue Oct 19 17:14:01 1999
- Orig file:
v2.2.12/linux/drivers/net/ppp.c
- Orig date:
Tue May 11 09:55:45 1999
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)