patch-2.3.19 linux/drivers/net/slip.c
Next file: linux/drivers/net/smc-mca.c
Previous file: linux/drivers/net/sb1000.c
Back to the patch index
Back to the overall index
- Lines: 10
- Date:
Wed Sep 29 14:02:59 1999
- Orig file:
v2.3.18/linux/drivers/net/slip.c
- Orig date:
Thu Aug 26 13:05:38 1999
diff -u --recursive --new-file v2.3.18/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)