]> err.no Git - yubikey-personalization.old/commitdiff
Add udev rules to grant the console user access to the yubikey device node yubikey-personalisation_1.5.1-1
authorTollef Fog Heen <tfheen@err.no>
Thu, 14 Apr 2011 20:40:02 +0000 (22:40 +0200)
committerTollef Fog Heen <tfheen@err.no>
Thu, 28 Apr 2011 21:11:19 +0000 (23:11 +0200)
70-yubikey.rules [new file with mode: 0644]
Makefile.am
configure.ac

diff --git a/70-yubikey.rules b/70-yubikey.rules
new file mode 100644 (file)
index 0000000..d4525d3
--- /dev/null
@@ -0,0 +1,8 @@
+
+# Udev rules for letting the console user access the Yubikey USB
+# device node, needed for challenge/response to work correctly.
+
+ACTION=="add|change", SUBSYSTEM=="usb", \
+  ATTRS{idVendor}=="1050", ATTRS{idProduct}=="0010", \
+  TEST=="/var/run/ConsoleKit/database", \
+  RUN+="udev-acl --action=$env{ACTION} --device=$env{DEVNAME}"
index 5db67e686a001ce6d18a866d28b90b0db1dd4708..4afbae8e67e58179cfd1e03dab1ac851cbed2527 100644 (file)
@@ -77,6 +77,10 @@ EXTRA_DIST = doc/Compatibility.asciidoc doc/Make-Release.asciidoc doc/Read-Me.as
 # Dist contrib stuff.
 EXTRA_DIST += contrib/README contrib/programming.sh
 
+udevrulesdir=@udevrulesdir@
+dist_udevrules_DATA = \
+        70-yubikey.rules
+
 # Release
 
 PROJECT = yubikey-personalization
index 00062f8fa847d3912d54e7e472ea5ddd53f1a7e1..34d134e1aefe43f01bf9fb2dc1764e044a11586b 100644 (file)
@@ -120,6 +120,12 @@ AM_CONDITIONAL([BACKEND_LIBUSB_1_0], test x$with_backend = xlibusb-1.0)
 AM_CONDITIONAL([BACKEND_OSX], test x$with_backend = xosx)
 AM_CONDITIONAL([BACKEND_WINDOWS], test x$with_backend = xwindows)
 
+AC_ARG_WITH([udevrulesdir],
+        AS_HELP_STRING([--with-udevrulesdir=DIR], [Diectory for udev rules]),
+        [],
+        [])
+AC_SUBST([udevrulesdir], [$with_udevrulesdir])
+
 gl_LD_VERSION_SCRIPT
 gl_VALGRIND_TESTS