udev rule for matching USB class and subclass?

Petter Reinholdtsen pere at hungry.com
Mon Oct 10 22:10:15 BST 2016


[Felipe Sateler]
> I think so. There is the the ENV{MODALIAS} attribute that you can
> match on.

Right.  I tested using this rule in Jessie and Stretch, but it did not
work. :(

  SUBSYSTEM=="usb", ACTION=="add", ENV{MODALIAS}=="usb:*ic03isc00ip*", TAG+="uaccess"

Is there some documentation / examples on how to use the MODALIAS
attribute in an udev rule?  The ones I could find only matched with ""
or "?*", which is not quite what I want.  I suspect I am using it wrong,
but it is hard to tell without documentation. :(

> I do not have any idea why upstream scdaemon would have chosen that
> path. Perhaps the modalias can bring a false positive? I see that the
> rules also sets a gnupg driver, perhaps the scdaemon supports other
> smartcard readers not supported by the gnupg driver?

No idea. :)

-- 
Happy hacking
Petter Reinholdtsen




More information about the Pkg-systemd-maintainers mailing list