patch-2.3.40 linux/drivers/net/pcmcia/wavelan_cs.c
Next file: linux/drivers/net/pcmcia/xirc2ps_cs.c
Previous file: linux/drivers/net/pcmcia/tulip_cb.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Tue Jan 18 22:29:17 2000
- Orig file:
v2.3.39/linux/drivers/net/pcmcia/wavelan_cs.c
- Orig date:
Fri Oct 22 13:21:49 1999
diff -u --recursive --new-file v2.3.39/linux/drivers/net/pcmcia/wavelan_cs.c linux/drivers/net/pcmcia/wavelan_cs.c
@@ -2105,7 +2105,7 @@
}
/* only super-user can see encryption key */
- if(!suser())
+ if(!capable(CAP_NET_ADMIN))
{
ret = -EPERM;
break;
@@ -2437,7 +2437,7 @@
/* ------------------ PRIVATE IOCTL ------------------ */
case SIOCSIPQTHR:
- if(!suser())
+ if(!capable(CAP_NET_ADMIN))
{
ret = -EPERM;
break;
@@ -2476,7 +2476,7 @@
#ifdef HISTOGRAM
case SIOCSIPHISTO:
/* Verif if the user is root */
- if(!suser())
+ if(!capable(CAP_NET_ADMIN))
{
ret = -EPERM;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)