summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wu <lekensteyn@gmail.com>2013-04-24 15:17:24 +0200
committerPeter Wu <lekensteyn@gmail.com>2013-04-24 15:17:24 +0200
commit6914080f904d7f4cfa043cf536e40ebea7349101 (patch)
treec88e0ea51e2c45a9e00f37562286fb733cc64712
parent26ea52e92656abfa4449e6bb389a9177b2a96e83 (diff)
downloadltunify-6914080f904d7f4cfa043cf536e40ebea7349101.tar.gz
Add udev example for root-less accessing the unifying receiver
-rw-r--r--udev/42-logitech-unify-permissions.rules13
1 files changed, 13 insertions, 0 deletions
diff --git a/udev/42-logitech-unify-permissions.rules b/udev/42-logitech-unify-permissions.rules
new file mode 100644
index 0000000..73a6cbe
--- /dev/null
+++ b/udev/42-logitech-unify-permissions.rules
@@ -0,0 +1,13 @@
+# Allows non-root users to have raw access the Logitech Unifying USB Receiver
+# device. For development purposes, allowing users to write to the receiver is
+# potentially dangerous (e.g. perform firmware updates).
+
+# skip actual unified devices, only consider the receiver
+DRIVERS=="logitech-djdevice", GOTO="not_unify_recv"
+
+# Only allow members of the "plugdev" group to access the receiver
+SUBSYSTEM=="hidraw", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c52b", MODE="0660", GROUP="plugdev"
+# Alternative: Allow every user on the system to access the receiver
+#SUBSYSTEM=="hidraw", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c52b", MODE="0666"
+
+LABEL="not_unify_recv"