patch-2.3.99-pre1 linux/drivers/net/wavelan.c
Next file: linux/drivers/net/wavelan.h
Previous file: linux/drivers/net/wan/z85230.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Mon Mar 13 09:50:16 2000
- Orig file:
v2.3.51/linux/drivers/net/wavelan.c
- Orig date:
Fri Mar 10 16:40:43 2000
diff -u --recursive --new-file v2.3.51/linux/drivers/net/wavelan.c linux/drivers/net/wavelan.c
@@ -1990,7 +1990,7 @@
}
/* only super-user can see encryption key */
- if (!suser()) {
+ if (!capable(CAP_NET_ADMIN)) {
ret = -EPERM;
break;
}
@@ -2224,7 +2224,7 @@
/* ------------------ PRIVATE IOCTL ------------------ */
case SIOCSIPQTHR:
- if (!suser()) {
+ if (!capable(CAP_NET_ADMIN)) {
ret = -EPERM;
break;
}
@@ -2248,7 +2248,7 @@
#ifdef HISTOGRAM
case SIOCSIPHISTO:
/* Verify that the user is root. */
- if (!suser()) {
+ if (!capable(CAP_NET_ADMIN)) {
ret = -EPERM;
break;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)