2.3.52-1 introduce next patch
Why here don`t use capable()?
diff -u --recursive --new-file v2.3.51/linux/drivers/net/hamradio/baycom_epp.c linux/drivers/net/hamradio/baycom_epp.c
--- v2.3.51/linux/drivers/net/hamradio/baycom_epp.c Sun Feb 20 21:12:39 2000
+++ linux/drivers/net/hamradio/baycom_epp.c Sun Mar 12 19:18:55 2000
@@ -1299,6 +1299,8 @@
break;
case HDLCDRVCTL_CALIBRATE:
+ if (!suser())
+ return -EACCES;
bc->hdlctx.calibrate = hi.data.calibrate * bc->bitrate / 8;
return 0;
diff -u --recursive --new-file v2.3.51/linux/drivers/net/hamradio/hdlcdrv.c linux/drivers/net/hamradio/hdlcdrv.c
--- v2.3.51/linux/drivers/net/hamradio/hdlcdrv.c Sun Feb 20 21:12:39 2000
+++ linux/drivers/net/hamradio/hdlcdrv.c Sun Mar 12 19:18:55 2000
@@ -684,6 +684,8 @@
break;
case HDLCDRVCTL_CALIBRATE:
+ if(!suser())
+ return -EPERM;
s->hdlctx.calibrate = bi.data.calibrate * s->par.bitrate / 16;
return 0;
-- I'd be a poorer man if I'd never seen an eagle fly. -- John Denver[I saw an eagle fly once. Fortunately, I had my eagle fly swatter handy. Ed.]
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Wed Mar 15 2000 - 21:00:23 EST