From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BDB4E13832E for ; Wed, 17 Aug 2016 16:59:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7990621C0B9; Wed, 17 Aug 2016 16:59:08 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D15AC21C0B9 for ; Wed, 17 Aug 2016 16:59:07 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BECB0340F0E for ; Wed, 17 Aug 2016 16:59:06 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 18C427A for ; Wed, 17 Aug 2016 16:59:04 +0000 (UTC) From: "Jason Zaman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason Zaman" Message-ID: <1471450964.c90a72dc34e6db9bd4f0c6b727491abebde69bbc.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/system/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/system/userdomain.if X-VCS-Directories: policy/modules/system/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: c90a72dc34e6db9bd4f0c6b727491abebde69bbc X-VCS-Branch: master Date: Wed, 17 Aug 2016 16:59:04 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 6a28c8be-c05f-47b6-9679-0a192cfe958e X-Archives-Hash: 56319235755f7e69c601e2a1107058a3 Message-ID: <20160817165904.cQrLSOZoMWYbq7AFIkTv1n_Gk90gEidxhcNVp-gqNzg@z> commit: c90a72dc34e6db9bd4f0c6b727491abebde69bbc Author: Chris PeBenito ieee org> AuthorDate: Sun Aug 14 18:12:50 2016 +0000 Commit: Jason Zaman gentoo org> CommitDate: Wed Aug 17 16:22:44 2016 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=c90a72dc Allow the system user domains to chat over dbus with a few other domains (e.g. gnome session). Thanks to Jason Zaman for pointing out the correct interface to achieve this. This new version fixes a typographic error in the previous version. Signed-off-by: Guido Trentalancia trentalancia.net> policy/modules/system/userdomain.if | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/policy/modules/system/userdomain.if b/policy/modules/system/userdomain.if index 9c40ce1..f0b4778 100644 --- a/policy/modules/system/userdomain.if +++ b/policy/modules/system/userdomain.if @@ -620,10 +620,18 @@ template(`userdom_common_user_template',` dbus_system_bus_client($1_t) optional_policy(` + accountsd_dbus_chat($1_t) + ') + + optional_policy(` bluetooth_dbus_chat($1_t) ') optional_policy(` + colord_dbus_chat($1_t) + ') + + optional_policy(` consolekit_dbus_chat($1_t) ') @@ -632,6 +640,11 @@ template(`userdom_common_user_template',` ') optional_policy(` + devicekit_dbus_chat_disk($1_t) + devicekit_dbus_chat_power($1_t) + ') + + optional_policy(` hal_dbus_chat($1_t) ') @@ -642,6 +655,14 @@ template(`userdom_common_user_template',` optional_policy(` policykit_dbus_chat($1_t) ') + + optional_policy(` + rtkit_daemon_dbus_chat($1_t) + ') + + optional_policy(` + xdm_dbus_chat($1_t) + ') ') optional_policy(`