2010/9/9 David Zeuthen <zeuthen@xxxxxxxxx>: > Hey, > > On Thu, Sep 9, 2010 at 5:57 AM, Ludovic Rousseau > <ludovic.rousseau@xxxxxxxxx> wrote: >> > Something like: >> > SUBSYSTEM=="usb", ENV{ID_USB_INTERFACES}="*:0b0000:*", GROUP= ... >> > should do it. >> >> Yes, it does work. >> >> But I find the rule more obscure. >> >> Since performance is not a critical point for me I think I will stay with: >> ATTRS{bInterfaceClass}=="0b", RUN+="/bin/chgrp pcscd $root/$parent" > > Please don't. It's racy. In particular it will break if you have > daemons or apps listening for uevents and doing stuff when the device > node appears. Would the race issue disappear if I use RUN= instead of RUN+=? The chgrp command should not take to long to execute. Yes, I also have a daemon listening for events. I am using libhal now but plan to move to libudev "soon". Thanks -- Dr. Ludovic Rousseau -- To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html