diff options
Diffstat (limited to 'drivers/net/pcmcia/wavelan_cs.c')
-rw-r--r-- | drivers/net/pcmcia/wavelan_cs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/pcmcia/wavelan_cs.c b/drivers/net/pcmcia/wavelan_cs.c index 5e9c9e6e2..c1c38aa28 100644 --- a/drivers/net/pcmcia/wavelan_cs.c +++ b/drivers/net/pcmcia/wavelan_cs.c @@ -2105,7 +2105,7 @@ wavelan_ioctl(struct net_device * dev, /* Device on wich the ioctl apply */ } /* only super-user can see encryption key */ - if(!suser()) + if(!capable(CAP_NET_ADMIN)) { ret = -EPERM; break; @@ -2437,7 +2437,7 @@ wavelan_ioctl(struct net_device * dev, /* Device on wich the ioctl apply */ /* ------------------ PRIVATE IOCTL ------------------ */ case SIOCSIPQTHR: - if(!suser()) + if(!capable(CAP_NET_ADMIN)) { ret = -EPERM; break; @@ -2476,7 +2476,7 @@ wavelan_ioctl(struct net_device * dev, /* Device on wich the ioctl apply */ #ifdef HISTOGRAM case SIOCSIPHISTO: /* Verif if the user is root */ - if(!suser()) + if(!capable(CAP_NET_ADMIN)) { ret = -EPERM; } |