You are not logged in.

#1 2023-08-24 21:00:47

M.Unter
Member
Registered: 2023-08-24
Posts: 1

D-Bus setup failed: Connection isn't allowed to "org.bluez"

Hi,

since the last couple of days I'm facing some issues with Bluetooth LE and my Laptop T590 with a Bluetooth 9460/9560 Jefferson Peak.

Before posting all my logs I want to state that:
- bluez, bluez-utils, bluemann, bluez-utils-compat are installed
- kernel modules are loaded (lsmod | grep btusb),
- bluetooth.service is active
- Bluetooth device is not blocked by rfkill
- Detailed hardware information by lshw also looks fine
- thinkpad_acpi is enabled (1)
- Adapters was set in /etc/bluetooth/main.conf to dual, bredr and le with no success

But starting the bluetooth daemon with

/usr/lib/bluetooth/bluetoothd -n -d

outputs

bluetoothd[26453]: Bluetooth daemon 5.68
bluetoothd[26453]: src/main.c:parse_config() parsing /etc/bluetooth/main.conf
bluetoothd[26453]: src/main.c:parse_config_string() General.ControllerMode = dual
D-Bus setup failed: Connection ":1.175" is not allowed to own the service "org.bluez" due to security policies in the configuration file
bluetoothd[26453]: src/main.c:main() Unable to get on D-Bus

I found somewhere in the forum, that the security policies need to be set in

/usr/shar/dbus-1/system.d/bluetooth.conf

but I couldn't find out, what to be set. At the moment the config are as follows:

 <policy user="root">
    <allow own="org.bluez"/>
    <allow send_destination="org.bluez"/>
    <allow send_interface="org.bluez.AdvertisementMonitor1"/>
    <allow send_interface="org.bluez.Agent1"/>
    <allow send_interface="org.bluez.MediaEndpoint1"/>
    <allow send_interface="org.bluez.MediaPlayer1"/>
    <allow send_interface="org.bluez.Profile1"/>
    <allow send_interface="org.bluez.GattCharacteristic1"/>
    <allow send_interface="org.bluez.GattDescriptor1"/>
    <allow send_interface="org.bluez.LEAdvertisement1"/>
    <allow send_interface="org.freedesktop.DBus.ObjectManager"/>
    <allow send_interface="org.freedesktop.DBus.Properties"/>
    <allow send_interface="org.mpris.MediaPlayer2.Player"/>
  </policy>

  <policy context="default">
    <allow send_destination="org.bluez"/>
  </policy>

How needs the security settings to be set?

I spent several days to figure out the problem, therefore any help is warmly appreciated. If my summary is not detailed enough, I'm happy to provide you more logs.

Thanks in regard,

Martin

Offline

#2 2023-08-24 21:29:36

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 72,612

Re: D-Bus setup failed: Connection isn't allowed to "org.bluez"

But starting the bluetooth daemon with

As root?

Edit: the service also sets some caps, why are you trying to run this manually?

Last edited by seth (2023-08-24 21:31:14)

Online

Board footer

Powered by FluxBB