Yubico Forum

...visit our web-store at store.yubico.com
It is currently Tue Jan 30, 2018 12:57 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Universal udev rules
PostPosted: Thu Dec 04, 2014 2:18 am 
Offline

Joined: Sat Sep 20, 2008 7:09 pm
Posts: 6
Rather than update Linux udev rules for every new device that supports fido u2f, I followed the recommendation in this thread https://www.mail-archive.com/systemd-de ... 24330.html and wrote a short program that reads hid device usage pages looking for 0xF1D0. The code is here https://gist.github.com/ghoff/f0675b40b7f0d686a980
With the u2f-detect program compiled and placed in /lib/udev, the only rule that needs to be in /lib/udev/rules.d/70-u2f.rules is

Code:
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ENV{ID_SECURITY_TOKEN}!="?*", IMPORT{program}="u2f-detect $devnode"

The rules in the existing 70-uaccess.rules will grant the local user access to the /dev/hidraw? u2f device. This has been tested on Ubuntu 14.04 with a Yubico security key. It should work equally well with a NEO, NEO-n, the security key from plug-up and any future device.


Top
 Profile  
Reply with quote  

Share On:

Share on Facebook FacebookShare on Twitter TwitterShare on Tumblr TumblrShare on Google+ Google+

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group