Return-Path: From: Travis Griggs Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Allow non-root user to access BLE DBus interface (systemd) Message-Id: <0FD5C3A6-1C8B-482C-BC83-36DB5ED94551@gmail.com> Date: Wed, 1 Mar 2017 08:35:47 -0800 To: Bluez mailing list Sender: linux-bluetooth-owner@vger.kernel.org List-ID: This is not directly bluez/ble related, but rather derived from their = use. I=E2=80=99ve been prototyping my BLE peripheral behavior running as = root. Now I=E2=80=99m hardening things and partitioning the BLE app to a = non-root user. My service now errors out with the following: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: = Rejected send message, 2 matched rule s; type=3D"method_call", sender=3D":1.6797" (uid=3D107 pid=3D17300 = comm=3D"/usr/bin/python3 -u /opt/pilot/bleMainloop ") = interface=3D"org.freedesktop.DBus.Objec tManager" member=3D"GetManagedObjects" error name=3D"(unset)" = requested_reply=3D"0" destination=3D":1.2" (uid=3D0 pid=3D1373 = comm=3D"/usr/lib/bluetooth/bluetoothd -d -E --noplugin=3D* =E2=80=9C) I see that there=E2=80=99s a bluetooth.conf in /etc/dbus-1/system.d. Do = I need to tune something in this file to allow my app to still use the = BLE DBus services? Any examples or pointers would be appreciated. (sorry if this ended up a repeat post)=