[gnome-settings-daemon] rfkill: Pull 61-gnome-bluetooth-rfkill.rules here to upstream
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] rfkill: Pull 61-gnome-bluetooth-rfkill.rules here to upstream
- Date: Thu, 21 Nov 2013 13:59:18 +0000 (UTC)
commit cefd910bcaad2df5d6c74407f1391172911527d3
Author: Colin Walters <walters verbum org>
Date: Wed Nov 20 18:20:01 2013 -0500
rfkill: Pull 61-gnome-bluetooth-rfkill.rules here to upstream
It lives in the Debian and Fedora packages at least, and I stopped
digging through downstream package crap after that. From the mailing
list discussion, yeah, while Marcel has a point, in practice, console
users can shut down the machine too...
And many downstreams ship NetworkManager with permissions such that
the user can control system networking to a large degree.
Given that, let's just pull this upstream, anyone who doesn't want it
can work on engineering something else (which is likely making
NetworkManager be a proxy).
The *real* reason I'm doing this is because it avoids librfkill-glib
as used by gnome-shell spewing a g_warning() on start.
https://bugzilla.gnome.org/show_bug.cgi?id=711373
.../rfkill/61-gnome-settings-daemon-rfkill.rules | 8 ++++++++
plugins/rfkill/Makefile.am | 3 +++
2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/plugins/rfkill/61-gnome-settings-daemon-rfkill.rules
b/plugins/rfkill/61-gnome-settings-daemon-rfkill.rules
new file mode 100644
index 0000000..87eabff
--- /dev/null
+++ b/plugins/rfkill/61-gnome-settings-daemon-rfkill.rules
@@ -0,0 +1,8 @@
+# Get access to /dev/rfkill for users
+# See https://bugzilla.redhat.com/show_bug.cgi?id=514798
+#
+# Simplified by Kay Sievers
+# https://bugzilla.redhat.com/show_bug.cgi?id=733326
+# See also https://bugzilla.gnome.org/show_bug.cgi?id=711373
+
+KERNEL=="rfkill", SUBSYSTEM=="misc", TAG+="uaccess"
diff --git a/plugins/rfkill/Makefile.am b/plugins/rfkill/Makefile.am
index 0d5cc2d..cc8e4ae 100644
--- a/plugins/rfkill/Makefile.am
+++ b/plugins/rfkill/Makefile.am
@@ -59,6 +59,9 @@ plugin_in_files = rfkill.gnome-settings-plugin.in
plugin_DATA = $(plugin_in_files:.gnome-settings-plugin.in=.gnome-settings-plugin)
+udevrulesdir = $(prefix)/lib/udev/rules.d
+udevrules_DATA = 61-gnome-settings-daemon-rfkill.rules
+
EXTRA_DIST = $(plugin_in_files)
CLEANFILES = $(plugin_DATA)
DISTCLEANFILES = $(plugin_DATA)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]