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 10E231381F1 for ; Wed, 17 Aug 2016 16:59:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6A1FD21C107; Wed, 17 Aug 2016 16:59:10 +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 E95A721C10A for ; Wed, 17 Aug 2016 16:59:08 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 23914340F11 for ; Wed, 17 Aug 2016 16:59:08 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8775F2461 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.8cae0e05081a2d859bc3c4861a2ecd7787ad3e11.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/services/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/services/xserver.if policy/modules/services/xserver.te X-VCS-Directories: policy/modules/services/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 8cae0e05081a2d859bc3c4861a2ecd7787ad3e11 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: cedfcdcb-470b-4fc3-8f8b-972e52dea1b1 X-Archives-Hash: 4942bca1067d5964a7cd9b4735f92a9c commit: 8cae0e05081a2d859bc3c4861a2ecd7787ad3e11 Author: Chris PeBenito ieee org> AuthorDate: Sun Aug 14 19:13:24 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=8cae0e05 Update for the xserver module: - updated the file contexts for the Xsession script; - created an interface for chatting over dbus with xdm (currently used by the userdomain module in the common user template); - added permission to chat over dbus with colord. Signed-off-by: Guido Trentalancia trentalancia.net> policy/modules/services/xserver.if | 21 +++++++++++++++++++++ policy/modules/services/xserver.te | 6 +++++- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/policy/modules/services/xserver.if b/policy/modules/services/xserver.if index 6bf0ecc..690c2b6 100644 --- a/policy/modules/services/xserver.if +++ b/policy/modules/services/xserver.if @@ -713,6 +713,27 @@ interface(`xserver_dontaudit_rw_xdm_pipes',` ######################################## ## +## Send and receive messages from +## xdm over dbus. +## +## +## +## Domain allowed access. +## +## +# +interface(`xserver_dbus_chat_xdm',` + gen_require(` + type xdm_t; + class dbus send_msg; + ') + + allow $1 xdm_t:dbus send_msg; + allow xdm_t $1:dbus send_msg; +') + +######################################## +## ## Read xdm process state files. ## ## diff --git a/policy/modules/services/xserver.te b/policy/modules/services/xserver.te index fc19905..44a561b 100644 --- a/policy/modules/services/xserver.te +++ b/policy/modules/services/xserver.te @@ -1,4 +1,4 @@ -policy_module(xserver, 3.11.3) +policy_module(xserver, 3.11.4) gen_require(` class x_drawable all_x_drawable_perms; @@ -511,6 +511,10 @@ optional_policy(` ') optional_policy(` + colord_dbus_chat(xdm_t) +') + +optional_policy(` consolekit_dbus_chat(xdm_t) ') 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 6251013832E for ; Wed, 17 Aug 2016 17:00:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 414A721C18D; Wed, 17 Aug 2016 17:00:12 +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 6EDD221C198 for ; Wed, 17 Aug 2016 17:00:09 +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 A466333BE44 for ; Wed, 17 Aug 2016 17:00:01 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 07ED22461 for ; Wed, 17 Aug 2016 16:59:59 +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.8cae0e05081a2d859bc3c4861a2ecd7787ad3e11.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:next commit in: policy/modules/services/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/services/xserver.if policy/modules/services/xserver.te X-VCS-Directories: policy/modules/services/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 8cae0e05081a2d859bc3c4861a2ecd7787ad3e11 X-VCS-Branch: next Date: Wed, 17 Aug 2016 16:59:59 +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: 30fc30c6-7618-4794-9221-aa2f4a537f46 X-Archives-Hash: 28f6828fc592bf3da118206b53a8e276 Message-ID: <20160817165959.xm90uOIfFVXmHZzv6F3Ys9i1JrOFXhLBVLeKDT60ywQ@z> commit: 8cae0e05081a2d859bc3c4861a2ecd7787ad3e11 Author: Chris PeBenito ieee org> AuthorDate: Sun Aug 14 19:13:24 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=8cae0e05 Update for the xserver module: - updated the file contexts for the Xsession script; - created an interface for chatting over dbus with xdm (currently used by the userdomain module in the common user template); - added permission to chat over dbus with colord. Signed-off-by: Guido Trentalancia trentalancia.net> policy/modules/services/xserver.if | 21 +++++++++++++++++++++ policy/modules/services/xserver.te | 6 +++++- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/policy/modules/services/xserver.if b/policy/modules/services/xserver.if index 6bf0ecc..690c2b6 100644 --- a/policy/modules/services/xserver.if +++ b/policy/modules/services/xserver.if @@ -713,6 +713,27 @@ interface(`xserver_dontaudit_rw_xdm_pipes',` ######################################## ## +## Send and receive messages from +## xdm over dbus. +## +## +## +## Domain allowed access. +## +## +# +interface(`xserver_dbus_chat_xdm',` + gen_require(` + type xdm_t; + class dbus send_msg; + ') + + allow $1 xdm_t:dbus send_msg; + allow xdm_t $1:dbus send_msg; +') + +######################################## +## ## Read xdm process state files. ## ## diff --git a/policy/modules/services/xserver.te b/policy/modules/services/xserver.te index fc19905..44a561b 100644 --- a/policy/modules/services/xserver.te +++ b/policy/modules/services/xserver.te @@ -1,4 +1,4 @@ -policy_module(xserver, 3.11.3) +policy_module(xserver, 3.11.4) gen_require(` class x_drawable all_x_drawable_perms; @@ -511,6 +511,10 @@ optional_policy(` ') optional_policy(` + colord_dbus_chat(xdm_t) +') + +optional_policy(` consolekit_dbus_chat(xdm_t) ')