> Because libhid is based on libusb and libusb is a usermode driver, does 
this
> mean that the application linked with libusb must be running under root?
> Please correct me if I am wrong.
>
> I tried libusb in the past and I can remember, that I had to set the 
setuid
> bit for the linked application to get it run.

it's the hotplug (and alike) tasks to give the good right on the files
according to the rules you've given it. Using suid or chown is a bad
temp. hack. The long term is to generate an according.
For example, look at SANE (scanners) and its libusbscanner
(generally found in /etc/hotplug/usb/).
Look the hotplug* dirs in the link below:
http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/sane-backends/tools/?cvsroot=sane

> This is one thing which I want to avoid and therefore this time I 
selected
> hiddev to program to. BTW, hiddev would fit nicely for the things I want 
to
> do ....

IMHO (but Vojtech and others might have a different point of view),
the usb (and hid) stack in Linux fits well for basic needs, ie input 
(keyb,
mice, remote and joystick). More complex things have to go to userland,
like SANE and NUT (UPS devices) have done. There are no need to put
too much complexity in kernel, thus making it less reliable...

But as you said, your device and need might match hiddev...

Arnaud
---
Linux / Unix Expert - MGE UPS SYSTEMS - R&D Dpt
OpenSource Developer - http://arnaud.quette.free.fr/
Debian Developer - http://people.debian.org/~aquette/
... and much more ...


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Linux-usb-users@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to