add yubikey udev rules

This commit is contained in:
Harald Hoyer 2018-09-11 16:48:27 +02:00
parent 0e17648dc5
commit 7e93df54b4
2 changed files with 14 additions and 0 deletions

10
69-yubikey.rules Normal file
View file

@ -0,0 +1,10 @@
ACTION!="add|change", GOTO="yubico_end"
# Udev rules for letting the console user access the Yubikey USB
# device node, needed for challenge/response to work correctly.
# Yubico Yubikey II
ATTRS{idVendor}=="1050", ATTRS{idProduct}=="0010|0110|0111|0114|0116|0401|0403|0405|0407|0410", \
ENV{ID_SECURITY_TOKEN}="1"
LABEL="yubico_end"

4
quirks/yubikey.sh Normal file
View file

@ -0,0 +1,4 @@
#!/bin/bash
mkdir -p "$sysroot"/etc/udev/rules.d
cp "$CURDIR/69-yubikey.rules" "$sysroot"/etc/udev/rules.d