From mboxrd@z Thu Jan 1 00:00:00 1970 From: Harald Hoyer Date: Fri, 31 Jul 2009 10:58:22 +0000 Subject: Add user ACLs for /dev/rfkill Message-Id: <4A72CE4E.3030205@redhat.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="------------010709010807040005010900" List-Id: To: linux-hotplug@vger.kernel.org This is a multi-part message in MIME format. --------------010709010807040005010900 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit --------------010709010807040005010900 Content-Type: text/plain; name="0001-70-acl.rules-add-rfkill-switch.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-70-acl.rules-add-rfkill-switch.patch" >From 6e4ceb8205a7027b750d0cf1477834e91341e502 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Fri, 31 Jul 2009 12:55:49 +0200 Subject: [PATCH] 70-acl.rules: add rfkill switch For gnome-bluetooth's killswitch code to work, the user on the local console needs to have access to /dev/rfkill. see https://bugzilla.redhat.com/show_bug.cgi?id=514798 --- extras/udev-acl/70-acl.rules | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/extras/udev-acl/70-acl.rules b/extras/udev-acl/70-acl.rules index f41bb66..85ea8a1 100644 --- a/extras/udev-acl/70-acl.rules +++ b/extras/udev-acl/70-acl.rules @@ -44,6 +44,9 @@ SUBSYSTEM=="misc", KERNEL=="kvm", ENV{ACL_MANAGE}="1" # smart-card readers ENV{ID_SMARTCARD_READER}=="*?", ENV{ACL_MANAGE}="1" +# rfkill switch +KERNEL=="rfkill", ENV{ACL_MANAGE}="1" + # apply ACL for all locally logged in users LABEL="acl_apply", ENV{ACL_MANAGE}=="?*", TEST=="/var/run/ConsoleKit/database", \ RUN+="udev-acl --action=$env{ACTION} --device=$env{DEVNAME}" -- 1.6.2.5 --------------010709010807040005010900--