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 6BE52139085 for ; Sun, 1 Jan 2017 16:36:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BA70AE0D5E; Sun, 1 Jan 2017 16:36:51 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 9AB35E0D5E for ; Sun, 1 Jan 2017 16:36:51 +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 D8D6B340F2A for ; Sun, 1 Jan 2017 16:36:50 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A1F2D25C4 for ; Sun, 1 Jan 2017 16:36:49 +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: <1483287988.02533322fa1a4030098ff54a3480b2fa7d362a8c.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 X-VCS-Directories: policy/modules/services/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 02533322fa1a4030098ff54a3480b2fa7d362a8c X-VCS-Branch: master Date: Sun, 1 Jan 2017 16:36:49 +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: d186cfd5-5e3b-4d2e-b6da-37702b6776b6 X-Archives-Hash: 2281253362b4207bbd81c421f9710726 commit: 02533322fa1a4030098ff54a3480b2fa7d362a8c Author: Chris PeBenito ieee org> AuthorDate: Sun Dec 18 22:42:39 2016 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sun Jan 1 16:26:28 2017 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=02533322 rtkit: enable dbus chat with xdm Enable dbus messaging between the X Display Manager (XDM) and the rtkit daemon. Also, let the rtkit daemon set the priority of the X Display Manager (XDM). This patch (along with parts 3/5 and 4/5) might be needed when running gdm. I do apologize for the broken interface in the previous version of this patch. Signed-off-by: Guido Trentalancia trentalancia.net> policy/modules/services/xserver.if | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/policy/modules/services/xserver.if b/policy/modules/services/xserver.if index 3b55a08..bebc419 100644 --- a/policy/modules/services/xserver.if +++ b/policy/modules/services/xserver.if @@ -162,7 +162,6 @@ interface(`xserver_role',` manage_files_pattern($2, user_fonts_config_t, user_fonts_config_t) relabel_dirs_pattern($2, user_fonts_config_t, user_fonts_config_t) relabel_files_pattern($2, user_fonts_config_t, user_fonts_config_t) - ') ####################################### @@ -1350,3 +1349,22 @@ interface(`xserver_unconfined',` typeattribute $1 x_domain; typeattribute $1 xserver_unconfined_type; ') + +######################################## +## +## Set the priority of the X Display +## Manager (XDM). +## +## +## +## Domain allowed access. +## +## +# +interface(`xserver_setsched_xdm',` + gen_require(` + type xdm_t; + ') + + allow $1 xdm_t:process setsched; +')