aboutsummaryrefslogtreecommitdiffstats
path: root/udev
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2015-01-04 17:01:26 +0100
committerGravatar Christian Hesse <mail@eworm.de>2015-01-04 17:01:26 +0100
commit0d8ed99c12670069a4d7ef72724b0e3b34d3bdf4 (patch)
treebb2f101fdca81e1cbcf2c9bf342865c0429c3549 /udev
parent53e13de68ac9294325554ba8650e7f3655cd6361 (diff)
downloadmkinitcpio-ykfde-0d8ed99c12670069a4d7ef72724b0e3b34d3bdf4.tar.gz
mkinitcpio-ykfde-0d8ed99c12670069a4d7ef72724b0e3b34d3bdf4.tar.zst
add comment with Yubikey details to udev rule
Diffstat (limited to 'udev')
-rw-r--r--udev/20-ykfde.rules29
1 files changed, 26 insertions, 3 deletions
diff --git a/udev/20-ykfde.rules b/udev/20-ykfde.rules
index 5b6fbc8..2bd67e2 100644
--- a/udev/20-ykfde.rules
+++ b/udev/20-ykfde.rules
@@ -1,5 +1,28 @@
-# do challenge response with Yubikey II and try to answer
-# password agent
+# do challenge/response with Yubikey and try to answer password agent
+
+# Known Yubikey product ids as of 2015-01-04,
+# Yubikeys with OTP should support HMAC-SHA1 as well.
+# see /usr/include/ykpers-1/ykdef.h or
+# https://github.com/Yubico/yubikey-personalization/blob/master/ykcore/ykdef.h
+#
+# 0010 Yubikey (version 1 and 2)
+# 0110 Yubikey NEO - OTP only
+# 0111 Yubikey NEO - OTP and CCID
+# 0112 Yubikey NEO - CCID only
+# 0113 Yubikey NEO - U2F only
+# 0114 Yubikey NEO - OTP and U2F
+# 0115 Yubikey NEO - U2F and CCID
+# 0116 Yubikey NEO - OTP, U2F and CCID
+# 0401 Yubikey 4 - OTP only
+# 0402 Yubikey 4 - U2F only
+# 0403 Yubikey 4 - OTP and U2F
+# 0404 Yubikey 4 - CCID only
+# 0405 Yubikey 4 - OTP and CCID
+# 0406 Yubikey 4 - U2F and CCID
+# 0407 Yubikey 4 - OTP, U2F and CCID
+# 0410 Yubikey plus - OTP+U2F
+
ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", \
- ATTRS{idVendor}=="1050", ATTRS{idProduct}=="0010|0110|0111|0114|0116|0401|0403|0405|0407|0410", \
+ ATTRS{idVendor}=="1050", \
+ ATTRS{idProduct}=="0010|0110|0111|0114|0116|0401|0403|0405|0407|0410", \
RUN+="/usr/lib/udev/ykfde"