File: udev_access_rights.patch

package info (click to toggle)
msi-keyboard 1.1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 124 kB
  • sloc: cpp: 244; xml: 17; makefile: 9; sh: 4
file content (14 lines) | stat: -rw-r--r-- 678 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Author: Petter Reinholdtsen <pere@hungry.com>
Last-Update: Fri, 03 May 2024 00:08:20 +0200
Bug-Debian: https://bugs.debian.org/1070262
Description: msi-keyboard: Adjust udev access rights from 'everyone' to 'console user
 The current udev role grant access to the device for everyone when the
 hardware is inserted.  I believe a better approach is to only grant
 access to the console user using the 'uaccess' tag.  Here is a patch to
 adjust the access role.

--- a/99-msi.rules
+++ b/99-msi.rules
@@ -1 +1 @@
-SUBSYSTEM=="usb", ATTRS{idVendor}=="1770", ATTRS{idProduct}=="ff00", MODE="0666"
+SUBSYSTEM=="usb", ATTRS{idVendor}=="1770", ATTRS{idProduct}=="ff00", TAG+="uaccess"