Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add udev rules to Linux distributions #144

Open
nickray opened this issue Mar 13, 2019 · 13 comments
Open

Add udev rules to Linux distributions #144

nickray opened this issue Mar 13, 2019 · 13 comments

Comments

@nickray
Copy link
Member

@nickray nickray commented Mar 13, 2019

It's too much effort for normal people to install udev rules.
On Debian [1], 70-u2f.rules is packaged with libu2f-host, which is maintained by Yubico.

For Fedora, according to [1], an alternative is used: https://github.com/amluto/u2f-hidraw-policy which checks if 0xf1d0 is in the hidraw usage page.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=824532

@nickray
Copy link
Member Author

@nickray nickray commented Mar 13, 2019

Yubico/libu2f-host#117 done, we're merged

@nickray
Copy link
Member Author

@nickray nickray commented Mar 13, 2019

@Square252
Copy link

@Square252 Square252 commented May 20, 2019

I created PKGBUILDs for ArchLinux (they are available in the AUR), to provide Solo's udev files directly instead of the one provided via libu2f-host:

@emaste
Copy link

@emaste emaste commented Jun 9, 2019

For reference the most recent version of FreeBSD's https://www.freshports.org/security/u2f-devd includes SoloKeys entries

        match "vendor"          "0x0483";
        match "product"         "(0xcdab|0xa2ca)";
...
        match "vendor"          "0x1209";
        match "product"         "(0x5070|0x50b0)";

@nickray
Copy link
Member Author

@nickray nickray commented Jun 9, 2019

Yeah, libu2f-host cut a release, Arch Linux has us now too @Square252. Hopefully this will roll out to non-stable Debian + Ubuntu soon! @emaste do you happen to know if u2f.conf.sample is the upstream of u2f-devd, or how does this work? In any case, happy about the magic <3

@nickray
Copy link
Member Author

@nickray nickray commented Jul 27, 2019

@Forage
Copy link

@Forage Forage commented Nov 5, 2019

FYI: Ubuntu 19.10 has libu2f-udev 1.1.10-1 installed by default now which includes rules for Solo

@poettering
Copy link

@poettering poettering commented Apr 27, 2020

Note that since systemd 244 udev detects fido2 keys automatically and sets the right perms. Any additional udev rules should be unnecessary, in particular any that use vid/pid matching.

@jolo1581
Copy link
Contributor

@jolo1581 jolo1581 commented Apr 27, 2020

@poettering since not everyone has systemd >= 244 the udev rules might be necessary

@poettering
Copy link

@poettering poettering commented Apr 27, 2020

My comment was mostly a suggestion to add this to the docs (in particular packaging/building docs), so that people who prepare any of this for distros just skip the rules if their distro has a new systemd.

@jolo1581
Copy link
Contributor

@jolo1581 jolo1581 commented Apr 27, 2020

@poettering
Maybe you can send a pullrequest

@fmeum
Copy link
Contributor

@fmeum fmeum commented May 8, 2020

@jolo1581 @poettering I added a note about the systemd support in #435.

@bjacquin
Copy link

@bjacquin bjacquin commented May 8, 2020

@poettering since not everyone has systemd >= 244 the udev rules might be necessary

not everyone has systemd overall

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
8 participants