gl-sergei / u2f-token

u2f token firmware for stm32f103 and efm32hg boards
GNU General Public License v3.0
339 stars 56 forks source link

Udev rules for certtool #22

Open gl-sergei opened 5 years ago

gl-sergei commented 5 years ago

certtool is using easyhid which in turn is using hidapi-libusb on Linux systems, which requires an access to /sys/bus/usb/devices/.... In order to make it work (on Arch in my case), I had to add following rules:

ACTION=="add|change", SUBSYSTEM=="usb", ATTRS{idVendor}=="16d0", ATTRS{idProduct}=="0e90", TAG+="uaccess"

Would be great to make certtool to use hidraw API on Linux so that hidraw* rule would become sufficient for certtool.