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
- Lines: 10
- Date:
Tue Oct 19 17:14:01 1999
- Orig file:
v2.2.12/linux/drivers/net/slip.c
- Orig date:
Wed May 20 18:55:04 1998
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)