From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 2ED6D1381F3 for ; Sun, 18 Nov 2012 07:49:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BB773E0329; Sun, 18 Nov 2012 07:49:28 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4153FE0329 for ; Sun, 18 Nov 2012 07:49:28 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4109033D8CC for ; Sun, 18 Nov 2012 07:49:27 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 7B02BE5436 for ; Sun, 18 Nov 2012 07:49:25 +0000 (UTC) From: "Sven Vermeulen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sven Vermeulen" Message-ID: <1353224859.195e0f38607134c4de97b2e4bec3bb343f351375.SwifT@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/contrib/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/contrib/portage.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: SwifT X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 195e0f38607134c4de97b2e4bec3bb343f351375 X-VCS-Branch: master Date: Sun, 18 Nov 2012 07:49:25 +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: 232c8b06-faf8-46c7-906e-df7355996b0e X-Archives-Hash: add869944f4023e375e3de8a8c6822d1 commit: 195e0f38607134c4de97b2e4bec3bb343f351375 Author: Sven Vermeulen siphos be> AuthorDate: Sun Nov 18 07:47:39 2012 +0000 Commit: Sven Vermeulen siphos be> CommitDate: Sun Nov 18 07:47:39 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=195e0f38 Allow sandbox to log violations When the sandbox (running in portage_sandbox_t) detects a violation, it will try to log this into /var/log:sandbox. However, the portage_sandbox_t domain currently is not allowed to do anything with this logs. As a result, the violations are not logged. Allow the portage_sandbox_t domain to generate logs (as portage_log_t) as well as clean them up (sandbox will remove older violation logs if the process id of the current violation would result in an existing log file to be overwritten). --- policy/modules/contrib/portage.te | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/policy/modules/contrib/portage.te b/policy/modules/contrib/portage.te index 996f717..16b6df5 100644 --- a/policy/modules/contrib/portage.te +++ b/policy/modules/contrib/portage.te @@ -373,6 +373,9 @@ ifdef(`hide_broken_symptoms',` ') ifdef(`distro_gentoo',` + allow portage_sandbox_t portage_log_t:file manage_file_perms; + logging_log_filetrans(portage_sandbox_t, portage_log_t, file) + ########################################## # # Portage eselect module domain