Commit Graph

7 Commits

Author SHA1 Message Date
Bram Stolk db1d0cb220 Update 69-hid.rules (#337)
`SUBSYSTEMS` should be used instead of `SUBSYSTEM` for "usb" match.

Fixes: #335
2021-09-25 02:52:04 +03:00
Ihor Dutchak e9f8c3e75e udev.rules documentation improvement (#326)
As recently discovered (thanks @tresf), the `TAG+="uaccess"` has to be used
before `73-seat-late.rules` and not before `70-uaccess.rules`.

Technically it doesn't harm to have a more restrictive recommenration,
but it was not technically correct.

Refference on `uaccess` TAG consumption:
[1](https://github.com/systemd/systemd/blob/3a1220eedfb65355c387c29584380742a21917aa/src/login/73-seat-late.rules.in), [2](https://www.apt-browse.org/browse/debian/wheezy/main/amd64/systemd/44-11+deb7u4/file/lib/udev/rules.d/73-seat-late.rules).
2021-09-13 17:00:58 +03:00
Be fc8fdd2bf4 improve documentation for udev rule files on Linux (#276)
- use TAG+="uaccess" instead of overly broad MODE="0666" by default example
        as advised by Debian:
        https://lists.debian.org/debian-devel-announce/2016/11/msg00008.html
        Adding the uaccess tag to udev rules
        ------------------------------------
Packages containing udev rules that use GROUP="plugdev" should also add
 TAG+="uaccess" so that all users that are physically present can access
 the relevant devices, instead of just users in the plugdev group
 (GROUP="plugdev"). Some packages use MODE="666" to allow all users
 (including remote users) to access devices. For almost all devices it is
 probably more appropriate to switch from MODE="666" to GROUP="plugdev",
 MODE="660", TAG+="uaccess" so that remote users cannot access local
 devices. Check the wiki page for USB gadgets[13] for more hints.
 There is a lintian warning in progress[14] for these issues.
  -- Paul Wise & Petter Reinholdtsen
 [] https://wiki.debian.org/USB/GadgetSetup
 [] https://bugs.debian.org/841670

- remove documentation for Linux <2.6.24
2021-05-21 01:04:08 +03:00
Diego Herranz 1f615efdbe Documentation: path fixes
hid-libusb.c was renamed hid.c long ago but documentation wasn't
updated.
2016-09-19 23:40:11 -04:00
Alan Ott 425ef9f86e udev: Insert comment about case-sensitivity
VID/PID (hex) are case sensitive.
2012-07-30 10:51:51 -04:00
Alan Ott e44064cf6d Added comments to udev/99-hid.rules
Comment includes info from Alan Stern regarding older kernels.
2011-10-26 17:39:00 -04:00
Alan Ott 81dd9bf36a Added sample Udev files for Linux systems. 2011-10-25 12:56:08 -04:00