On Wed, Aug 09, 2006, EV wrote: > > I don't see what advantages this brings over the suid > > executable. Why not just call karma_helper from within riocp, > > etc? > > Because of the reasons we discussed some time ago: > > 2006-07-16: EV dixit: > > System() calls ar fine for me. But certainly not for a > > library; and less so if the system() call is to exec a > > specific program which does not belong to the base system.
I meant calling it directly from riocp, etc. rather than adding it to the library. > 2006-07-16: Keith Bennett dixit: > > Agreed. That's one of the reasons that I thought the code was > > ugly. The only reason I had it there was that the device needed > > to be both unbound and bound in the > > lk_karmaUsb_load_database_smalldb() call. The call could easily be changed to get around this problem. > Also, a daemon is a far more conventional way of providing > privileged services in user-space than the syscall() method... But it means that the system has to have yet another daemon running. If there was more of a generic service being provided then I might agree, but I think that this is much too specialised to warrant a daemon. Most people only have a single karma which makes the serial number issue somewhat moot. (I personally leave it at the default of zero). Setting the time is probably best left in a standalone application such as karma_helper. That just leaves bind/unbind which is solved by the kernel patch for ejecting the device. As Bob says, this is pretty simple and unintrusive so there is a fair chance that it will be accepted. Keith. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ linux-karma-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-karma-devel
