Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A4249C4332D for ; Thu, 19 Mar 2020 16:13:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2414820663 for ; Thu, 19 Mar 2020 16:13:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=bigon.be header.i=@bigon.be header.b="sAHkgzyC" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727941AbgCSQNW (ORCPT ); Thu, 19 Mar 2020 12:13:22 -0400 Received: from ithil.bigon.be ([163.172.57.153]:59744 "EHLO ithil.bigon.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728383AbgCSQNM (ORCPT ); Thu, 19 Mar 2020 12:13:12 -0400 X-Greylist: delayed 332 seconds by postgrey-1.27 at vger.kernel.org; Thu, 19 Mar 2020 12:13:12 EDT Received: from localhost (localhost [IPv6:::1]) by ithil.bigon.be (Postfix) with ESMTP id CD4F01FE7D for ; Thu, 19 Mar 2020 17:07:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bigon.be; h= content-transfer-encoding:mime-version:x-mailer:message-id:date :date:subject:subject:from:from:received:received:received; s= key1; t=1584634058; x=1586448459; bh=uA43+qR7n+f5pt2WppsPe4grYHz GVODPuVJ4VYA9+3U=; b=sAHkgzyCpXp6ey6oSPfGPHSckXkZYOED6/B0XuWIUYF o4SzLsa2Uu6OYKL+JdeAFPdv6zdSSfg2S4a4rH9S3c8zW95Kkep9jpOHy/n8LxFy HPyKR1GwKlxWMS2WdJHZK5bFEPgjgO+YJwzHD6dlzRWsHrltbYLXFQtdoMDZ5b9o = Received: from ithil.bigon.be ([IPv6:::1]) by localhost (ithil.bigon.be [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id Of9CneSETsJx for ; Thu, 19 Mar 2020 17:07:38 +0100 (CET) Received: from edoras.bigon.be (unknown [IPv6:2a02:a03f:65bc:5f00:f7be:6179:48b7:2349]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: bigon@bigon.be) by ithil.bigon.be (Postfix) with ESMTPSA for ; Thu, 19 Mar 2020 17:07:38 +0100 (CET) Received: from bigon (uid 1000) (envelope-from bigon@bigon.be) id 20052 by edoras.bigon.be (DragonFly Mail Agent v0.12); Thu, 19 Mar 2020 17:07:38 +0100 From: Laurent Bigonville To: selinux-refpolicy@vger.kernel.org Subject: [PATCH] Label bluetooth daemon as bluetooth_exec_t Date: Thu, 19 Mar 2020 17:07:38 +0100 Message-Id: <20200319160738.201753-1-bigon@debian.org> X-Mailer: git-send-email 2.26.0.rc2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: selinux-refpolicy-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org From: Laurent Bigonville --- policy/modules/services/bluetooth.fc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/policy/modules/services/bluetooth.fc b/policy/modules/services/bluetooth.fc index 3d66914f..e167e93f 100644 --- a/policy/modules/services/bluetooth.fc +++ b/policy/modules/services/bluetooth.fc @@ -15,9 +15,12 @@ /usr/bin/rfcomm -- gen_context(system_u:object_r:bluetooth_exec_t,s0) /usr/bin/sdpd -- gen_context(system_u:object_r:bluetooth_exec_t,s0) +/usr/lib/bluetooth/bluetoothd -- gen_context(system_u:object_r:bluetooth_exec_t,s0) # Systemd unit file /usr/lib/systemd/system/[^/]*bluetooth.* -- gen_context(system_u:object_r:bluetooth_unit_t,s0) +/usr/libexec/bluetooth/bluetoothd -- gen_context(system_u:object_r:bluetooth_exec_t,s0) + /usr/sbin/bluetoothd -- gen_context(system_u:object_r:bluetooth_exec_t,s0) /usr/sbin/hciattach -- gen_context(system_u:object_r:bluetooth_exec_t,s0) /usr/sbin/hcid -- gen_context(system_u:object_r:bluetooth_exec_t,s0) -- 2.26.0.rc2