From c91d47dc8adcc04555930efc5948aa8c30a78c73 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Aug 11 2009 11:48:56 +0000 Subject: - Add udev rules to access /dev/rfkill (#514798) --- diff --git a/61-gnome-bluetooth-rfkill.rules b/61-gnome-bluetooth-rfkill.rules new file mode 100644 index 0000000..6789539 --- /dev/null +++ b/61-gnome-bluetooth-rfkill.rules @@ -0,0 +1,3 @@ +# Get access to /dev/rfkill for users +# See https://bugzilla.redhat.com/show_bug.cgi?id=514798 +KERNEL=="rfkill", ENV{ACL_MANAGE}="1" diff --git a/gnome-bluetooth.spec b/gnome-bluetooth.spec index c8766a1..575ee52 100644 --- a/gnome-bluetooth.spec +++ b/gnome-bluetooth.spec @@ -1,12 +1,13 @@ Name: gnome-bluetooth Version: 2.27.9 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Bluetooth graphical utilities Group: Applications/Communications License: GPLv2+ URL: http://live.gnome.org/GnomeBluetooth Source0: http://download.gnome.org/sources/gnome-bluetooth/2.27/gnome-bluetooth-%{version}.tar.bz2 +Source1: 61-gnome-bluetooth-rfkill.rules BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) Patch0: 0001-Bug-590874-crash-in-Bluetooth-adding-a-bluetoot.patch @@ -87,6 +88,8 @@ desktop-file-install --vendor="" \ --dir=$RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/ \ $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/bluetooth-applet.desktop +install -m0644 -D %{SOURCE1} $RPM_BUILD_ROOT/lib/udev/rules.d/61-gnome-bluetooth-rfkill.rules + # gnome-bluetooth2 is the name for the gettext domain, # gnome-bluetooth is the name in the docs %find_lang gnome-bluetooth2 @@ -177,6 +180,7 @@ fi %{_datadir}/applications/*.desktop %{_datadir}/gnome-bluetooth/ %{_mandir}/man1/* +/lib/udev/rules.d/61-gnome-bluetooth-rfkill.rules %files libs %defattr(-,root,root,-) @@ -193,6 +197,9 @@ fi %{_datadir}/gtk-doc/html/gnome-bluetooth/ %changelog +* Tue Aug 11 2009 Bastien Nocera 2.27.9-4 +- Add udev rules to access /dev/rfkill (#514798) + * Tue Aug 11 2009 Bastien Nocera 2.27.9-3 - Don't crash when exiting the wizard