Running bluetoothd from the build directory I noticed that as soon as
a bluetooth audio device was connect, bluetoothd would be disconnected
from dbus and print
Disconnected from D-Bus. Exiting.
Luiz Augusto von Dentz suggested trying with SELinux disabled and that
solved the problem.
This patch just documents how to disable SELinux before running
bluetoothd from the build directory. I would love to say more about
why that is needed, but could not find anything on the audit log.
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
Copy configuration file which specifies the required security policies
# sudo cp ./src/bluetooth.conf /etc/dbus-1/system.d/
+ Disable SELinux
+ # sudo setenforce 0
+
Run daemon in foreground with debugging
# sudo ./src/bluetoothd -n -d -f ./src/main.conf