gl-sergei / u2f-token

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

Different udev rules #21

Closed asymmetric closed 5 years ago

asymmetric commented 5 years ago

The udev rules in the README are different from the ones on the tomu.im homepage:

README:

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

tomu.im:

ACTION=="add|change", KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="cdab", TAG+="uaccess"

Is this intended? And how does it affect the functioning of the device?

gl-sergei commented 5 years ago

The firmware in this repo has 16d0:0e90 VID:PID. TAG+="uaccess" rule allows non privileged users to access hid device associated with given VID:PID.

asymmetric commented 5 years ago

I see. So do you reckon the tomu.im instructions (they mention this repo) are wrong?

gl-sergei commented 5 years ago

This project started as u2f implementation for stm32f103. Then I made efm32hg port. It is now hosted here: https://github.com/im-tomu/chopstx. Since then, I decided that it will be easier to maintain both version in the single source tree. The firmware in im-tomu repo (as this one originally used to) is using VID 0483. However that VID belongs to STMicroelectronics and its usage is illegal. I opted for obtaining a PID from MCS Electronics for this project recently (https://www.mcselec.com/index.php?page=shop.product_details&flypage=shop.flypage&product_id=92&option=com_phpshop&Itemid=1).