patch-2.3.99-pre1 linux/drivers/net/hamradio/pt.c
Next file: linux/drivers/net/hamradio/scc.c
Previous file: linux/drivers/net/hamradio/pi2.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/hamradio/pt.c
- Orig date:
Wed Aug 18 11:38:50 1999
diff -u --recursive --new-file v2.3.51/linux/drivers/net/hamradio/pt.c linux/drivers/net/hamradio/pt.c
@@ -998,7 +998,7 @@
switch (rq.cmd) {
case SIOCSPIPARAM:
- if (!suser())
+ if (!capable(CAP_NET_ADMIN))
return -EPERM;
save_flags(flags);
cli();
@@ -1015,7 +1015,7 @@
case SIOCSPIDMA:
- if (!suser())
+ if (!capable(CAP_SYS_RAWIO))
return -EPERM;
ret = 0;
if (dev->base_addr & CHANA) { /* if A channel */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)