patch-2.3.99-pre1 linux/drivers/net/ewrk3.c
Next file: linux/drivers/net/hamradio/baycom_epp.c
Previous file: linux/drivers/net/eql.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Mon Mar 13 09:50:16 2000
- Orig file:
v2.3.51/linux/drivers/net/ewrk3.c
- Orig date:
Wed Feb 16 17:03:52 2000
diff -u --recursive --new-file v2.3.51/linux/drivers/net/ewrk3.c linux/drivers/net/ewrk3.c
@@ -1836,7 +1836,7 @@
status = -EFAULT;
break;
case EWRK3_SET_TX_CUT_THRU: /* Set TX cut through mode */
- if (suser()) {
+ if (capable(CAP_NET_ADMIN)) {
lp->txc = 1;
} else {
status = -EPERM;
@@ -1844,7 +1844,7 @@
break;
case EWRK3_CLR_TX_CUT_THRU: /* Clear TX cut through mode */
- if (suser()) {
+ if (capable(CAP_NET_ADMIN)) {
lp->txc = 0;
} else {
status = -EPERM;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)