Linux-Bluetooth Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH] Mention disabling SELinux in HACKING
@ 2020-05-12  2:36 Rafael Ávila de Espíndola
  2020-05-19 15:58 ` Rafael Avila de Espindola
  0 siblings, 1 reply; 3+ messages in thread
From: Rafael Ávila de Espíndola @ 2020-05-12  2:36 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: luiz.dentz, 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(+)

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Mention disabling SELinux in HACKING
  2020-05-12  2:36 [PATCH] Mention disabling SELinux in HACKING Rafael Ávila de Espíndola
@ 2020-05-19 15:58 ` Rafael Avila de Espindola
  2020-05-19 17:57   ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 3+ messages in thread
From: Rafael Avila de Espindola @ 2020-05-19 15:58 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: luiz.dentz

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Mention disabling SELinux in HACKING
  2020-05-19 15:58 ` Rafael Avila de Espindola
@ 2020-05-19 17:57   ` Luiz Augusto von Dentz
  0 siblings, 0 replies; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2020-05-19 17:57 UTC (permalink / raw)
  To: Rafael Avila de Espindola; +Cc: linux-bluetooth

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.

-- 
Luiz Augusto von Dentz

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-12  2:36 [PATCH] Mention disabling SELinux in HACKING Rafael Ávila de Espíndola
2020-05-19 15:58 ` Rafael Avila de Espindola
2020-05-19 17:57   ` Luiz Augusto von Dentz

Linux-Bluetooth Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-bluetooth/0 linux-bluetooth/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-bluetooth linux-bluetooth/ https://lore.kernel.org/linux-bluetooth \
		linux-bluetooth@vger.kernel.org
	public-inbox-index linux-bluetooth

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-bluetooth


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git