systems/etc/udev/rules.d/61-rfkill.rules
2024-03-20 11:16:48 -05:00

16 lines
652 B
Text

# Set ACLs for console users on /dev/rfkill
# http://anonscm.debian.org/viewvc/pkg-gnome/desktop/unstable/gnome-bluetooth/debian/61-gnome-bluetooth-rfkill.rules?view=markup
# This is necessary until a daemon can properly handle access to the
# kill switch
# http://bugs.debian.org/563902
# https://bugzilla.redhat.com/show_bug.cgi?id=514798
# logind
# https://bugzilla.redhat.com/show_bug.cgi?id=733326
KERNEL=="rfkill", SUBSYSTEM=="misc", TAG+="uaccess"
# ConsoleKit
ENV{ACL_MANAGE}=="0", GOTO="rfkill_bluetooth_end"
ACTION!="add|change", GOTO="rfkill_bluetooth_end"
KERNEL=="rfkill", SUBSYSTEM=="misc", TAG+="udev-acl"
LABEL="rfkill_bluetooth_end"