Skip to contentSkip to conversation

Mention disabling SELinux in HACKING

PATCH Applied Rafael Ávila de Espíndola 2 participants 3 messages May 12, 2020 – May 19, 2020 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Mention disabling SELinux in HACKING

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.

---
 HACKING | 3 +++
 1 file changed, 3 insertions(+)
HACKING +3 -0
index e10986fcb..29b136b34 100644
@@ -76,6 +76,9 @@ automatically includes this option.
   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
 
Signature · 1 line
2.26.2
#1 lore raw

So, is this OK?

Cheers,
Rafael

Quoted 32 lines · Rafael Ávila de Espíndola

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.

---
 HACKING | 3 +++
 1 file changed, 3 insertions(+)
HACKING +3 -0
index e10986fcb..29b136b34 100644
@@ -76,6 +76,9 @@ automatically includes this option.
   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
 
Signature · 1 line
2.26.2
maintainer Applied
#2 lore raw

Hi Rafael,

Quoted 32 lines · Rafael Avila de Espindola

So, is this OK?

Cheers,
Rafael

Quoted 24 lines · Rafael Ávila de Espíndola

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.

---
 HACKING | 3 +++
 1 file changed, 3 insertions(+)
HACKING +0 -0
index e10986fcb..29b136b34 100644
@@ -76,6 +76,9 @@ automatically includes this option.
   Copy configuration file which specifies the required security policies
     # sudo cp ./src/bluetooth.conf /etc/dbus-1/system.d/
 
Quoted 8 lines
Quoted 8 lines
HACKING +3 -1
+  Disable SELinux
+    # sudo setenforce 0
+
   Run daemon in foreground with debugging
     # sudo ./src/bluetoothd -n -d -f ./src/main.conf
 
--

2.26.2

Applied, thanks.

Signature · 1 line
Luiz Augusto von Dentz