- Fix D-Bus configuration for latest D-Bus (#475069)

This commit is contained in:
Bastien Nocera 2008-12-09 11:28:35 +00:00
parent dbecba9367
commit 1e258fc15e
2 changed files with 31 additions and 1 deletions

View File

@ -1,13 +1,14 @@
Summary: Bluetooth utilities
Name: bluez
Version: 4.22
Release: 1%{?dist}
Release: 2%{?dist}
License: GPLv2+
Group: Applications/System
Source: http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.gz
Source1: bluetooth.init
Source2: bluetooth.conf
Source3: bluez-uinput.modules
Source4: dbus-bluetooth.conf
Patch1: bluez-utils-oui-usage.patch
Patch2: 0001-Add-icon-for-other-audio-device.patch
@ -100,6 +101,8 @@ use in Bluetooth applications.
%patch1 -p0 -b .oui
%patch2 -p1
cp -a %{SOURCE4} src/bluetooth.conf
%build
%configure --enable-cups --enable-hid2hci --enable-dfutool --enable-tools --enable-bccmd --enable-gstreamer --enable-hidd --enable-pand --enable-dund
make
@ -189,6 +192,9 @@ fi
%{_libdir}/alsa-lib/*.so
%changelog
* Tue Dec 09 2008 - Bastien Nocera <bnocera@redhat.com> - 4.22-2
- Fix D-Bus configuration for latest D-Bus (#475069)
* Mon Dec 08 2008 - Bastien Nocera <bnocera@redhat.com> - 4.22-1
- Update to 4.22

24
dbus-bluetooth.conf Normal file
View File

@ -0,0 +1,24 @@
<!-- This configuration file specifies the required security policies
for Bluetooth core daemon to work. -->
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
<!-- ../system.conf have denied everything, so we just punch some holes -->
<policy user="root">
<allow own="org.bluez"/>
<allow send_destination="org.bluez"/>
<allow send_interface="org.bluez.Agent"/>
</policy>
<policy at_console="true">
<allow send_destination="org.bluez"/>
</policy>
<policy context="default">
<deny send_destination="org.bluez"/>
</policy>
</busconfig>