net-wireless/bluez-4.39-r2 со своим стандартным конфигом не дружит с sys-apps/dbus-1.3.0-r1
В частности ошибка со стандартными настройками выглядит вот примерно так
Nov 16 21:54:02 localhost dbus-daemon: Rejected send message, 2 matched rules; type="method_call", sender=":1.89" (uid=1000 pid=12111 comm="bluetooth-applet) interface="org.bluez.Manager" member="ListAdapters" error name="(unset)" requested_reply=0 destination="org.bluez" (uid=0 pid=2465 comm="/usr/sbin/bluetoothd))
Nov 16 21:54:02 localhost dbus-daemon: Rejected send message, 2 matched rules; type="method_call", sender=":1.89" (uid=1000 pid=12111 comm="bluetooth-applet) interface="org.bluez.Manager" member="DefaultAdapter" error name="(unset)" requested_reply=0 destination="org.bluez" (uid=0 pid=2465 comm="/usr/sbin/bluetoothd))
Nov 16 21:54:13 localhost dbus-daemon: Rejected send message, 2 matched rules; type="method_call", sender=":1.89" (uid=1000 pid=12111 comm="bluetooth-applet) interface="org.bluez.Adapter" member="GetProperties" error name="(unset)" requested_reply=0 destination="org.bluez" (uid=0 pid=2465 comm="/usr/sbin/bluetoothd))
Nov 16 21:54:13 localhost dbus-daemon: Rejected send message, 2 matched rules; type="method_call", sender=":1.89" (uid=1000 pid=12111 comm="bluetooth-applet) interface="org.bluez.Adapter" member="RegisterAgent" error name="(unset)" requested_reply=0 destination="org.bluez" (uid=0 pid=2465 comm="/usr/sbin/bluetoothd))
Лекарство приводим файл /etc/dbus-1/system.d/bluetooth.conf к виду
<!-- 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 group="users">
<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>
Comments