Apply uaccess rules on all actions other than remove

These actions now need to react to "change" uevents, not only "add"
uevents. The recommendation from
5a8b9fd49f/NEWS (L22)
is to apply them on all non-"remove" uevents, which is what is done
here.

See also https://bugs.debian.org/1112660

Signed-off-by: Stephen Kitt <steve@sk2.org>
This commit is contained in:
Stephen Kitt 2025-09-02 08:17:44 +02:00 committed by Peter F. Patel-Schneider
parent abc5a31c15
commit 924684b610
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
# because they could perform firmware updates. # because they could perform firmware updates.
KERNEL=="uinput", SUBSYSTEM=="misc", TAG+="uaccess", OPTIONS+="static_node=uinput" KERNEL=="uinput", SUBSYSTEM=="misc", TAG+="uaccess", OPTIONS+="static_node=uinput"
ACTION != "add", GOTO="solaar_end" ACTION == "remove", GOTO="solaar_end"
SUBSYSTEM != "hidraw", GOTO="solaar_end" SUBSYSTEM != "hidraw", GOTO="solaar_end"
# USB-connected Logitech receivers and devices # USB-connected Logitech receivers and devices

View File

@ -4,7 +4,7 @@
# Allowing users to write to the device is potentially dangerous # Allowing users to write to the device is potentially dangerous
# because they could perform firmware updates. # because they could perform firmware updates.
ACTION != "add", GOTO="solaar_end" ACTION == "remove", GOTO="solaar_end"
SUBSYSTEM != "hidraw", GOTO="solaar_end" SUBSYSTEM != "hidraw", GOTO="solaar_end"
# USB-connected Logitech receivers and devices # USB-connected Logitech receivers and devices