diff mbox series

Mention disabling SELinux in HACKING

Message ID 20200512023609.43163-1-rafael@espindo.la (mailing list archive)
State New, archived
Headers show
Series Mention disabling SELinux in HACKING | expand

Commit Message

Rafael Avila de Espindola May 12, 2020, 2:36 a.m. UTC
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(+)

Comments

Rafael Avila de Espindola May 19, 2020, 3:58 p.m. UTC | #1
So, is this OK?

Cheers,
Rafael

Rafael Ávila de Espíndola <rafael@espindo.la> writes:

> 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(+)
>
> diff --git a/HACKING b/HACKING
> index e10986fcb..29b136b34 100644
> --- a/HACKING
> +++ b/HACKING
> @@ -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
>  
> -- 
> 2.26.2
Luiz Augusto von Dentz May 19, 2020, 5:57 p.m. UTC | #2
Hi Rafael,

On Tue, May 19, 2020 at 8:58 AM Rafael Avila de Espindola
<rafael@espindo.la> wrote:
>
> So, is this OK?
>
> Cheers,
> Rafael
>
> Rafael Ávila de Espíndola <rafael@espindo.la> writes:
>
> > 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(+)
> >
> > diff --git a/HACKING b/HACKING
> > index e10986fcb..29b136b34 100644
> > --- a/HACKING
> > +++ b/HACKING
> > @@ -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
> >
> > --
> > 2.26.2

Applied, thanks.
diff mbox series

Patch

diff --git a/HACKING b/HACKING
index e10986fcb..29b136b34 100644
--- a/HACKING
+++ b/HACKING
@@ -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