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 CEB88138806 for ; Tue, 12 Dec 2017 07:59:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 37680E0FA7; Tue, 12 Dec 2017 07:59:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 17095E0FA7 for ; Tue, 12 Dec 2017 07:59:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0C76633BE68 for ; Tue, 12 Dec 2017 07:59:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7E75AAE83 for ; Tue, 12 Dec 2017 07:59:12 +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: <1513062387.e21a1ab6acced79dae83f0c0da38fb9a97bd24bc.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: e21a1ab6acced79dae83f0c0da38fb9a97bd24bc X-VCS-Branch: master Date: Tue, 12 Dec 2017 07:59:12 +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: 2e2dec00-72c0-413e-8fdf-562a8205996f X-Archives-Hash: 1022754e6ced67fb74505fca7ffc3a12 commit: e21a1ab6acced79dae83f0c0da38fb9a97bd24bc Author: David Sugar tresys com> AuthorDate: Fri Dec 8 12:43:47 2017 +0000 Commit: Jason Zaman gentoo org> CommitDate: Tue Dec 12 07:06:27 2017 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=e21a1ab6 Create interfaces to write to inherited xserver log files. Updated based on feedback Signed-off-by: Dave Sugar tresys.com> policy/modules/services/xserver.if | 39 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/policy/modules/services/xserver.if b/policy/modules/services/xserver.if index f08db931..893e469f 100644 --- a/policy/modules/services/xserver.if +++ b/policy/modules/services/xserver.if @@ -1058,6 +1058,26 @@ interface(`xserver_xsession_spec_domtrans',` ######################################## ## +## Write to inherited xsession log +## files such as .xsession-errors. +## +## +## +## Domain allowed access. +## +## +# +interface(`xserver_write_inherited_xsession_log',` + gen_require(` + type xsession_log_t; + ') + + allow $1 xsession_log_t:file write_inherited_file_perms; +') + + +######################################## +## ## Read and write xsession log ## files such as .xsession-errors. ## @@ -1096,6 +1116,25 @@ interface(`xserver_manage_xsession_log',` ######################################## ## +## Write to inherited X server log +## files like /var/log/lightdm/lightdm.log +## +## +## +## Domain allowed access. +## +## +# +interface(`xserver_write_inherited_log',` + gen_require(` + type xserver_log_t; + ') + + allow $1 xserver_log_t:file write_inherited_file_perms; +') + +######################################## +## ## Get the attributes of X server logs. ## ##