From patchwork Tue May 12 02:36:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rafael Avila de Espindola X-Patchwork-Id: 11541947 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7623681 for ; Tue, 12 May 2020 02:36:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5EA2D20769 for ; Tue, 12 May 2020 02:36:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=espindo.la header.i=@espindo.la header.b="akR6g7MZ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728740AbgELCgu (ORCPT ); Mon, 11 May 2020 22:36:50 -0400 Received: from mail2.protonmail.ch ([185.70.40.22]:19340 "EHLO mail2.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727892AbgELCgu (ORCPT ); Mon, 11 May 2020 22:36:50 -0400 Date: Tue, 12 May 2020 02:36:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=espindo.la; s=protonmail; t=1589251007; bh=wxzwnvn6BiRQzeMZ5loWkkBMEUrg3WtO6DMyai84heE=; h=Date:To:From:Cc:Reply-To:Subject:From; b=akR6g7MZCnHSNbJ2qSN/7tFNmjcLazQ8FGqvmh4HhxBRmAlKJZSdCzpb1P28LDBk3 6zizpG/3826qNT/eMbjKi3RpR9II5pK89DEXyl6qngFiwIRdGbY6yLxT7kpvBkVU5c XTUnK0+dZAgS0mzYWYPiJWD8hnFjeNBfkpJ4nPtQ= To: linux-bluetooth@vger.kernel.org From: =?utf-8?q?Rafael_=C3=81vila_de_Esp=C3=ADndola?= Cc: luiz.dentz@gmail.com, =?utf-8?q?Rafael_=C3=81vila_de_Esp=C3=ADndola?= Reply-To: =?utf-8?q?Rafael_=C3=81vila_de_Esp=C3=ADndola?= Subject: [PATCH] Mention disabling SELinux in HACKING Message-ID: <20200512023609.43163-1-rafael@espindo.la> MIME-Version: 1.0 X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mail.protonmail.ch Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org 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