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 43330138BEF for ; Sat, 17 Oct 2015 17:02:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B0C4521C0DE; Sat, 17 Oct 2015 17:02:19 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 88F4621C0C0 for ; Sat, 17 Oct 2015 17:02:18 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C865D34091F for ; Sat, 17 Oct 2015 17:02:17 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7C0B911A7 for ; Sat, 17 Oct 2015 17:02:16 +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: <1445100470.26930c8978e8ae49829ee8b13e9da9ca05e024ce.perfinion@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.if X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 26930c8978e8ae49829ee8b13e9da9ca05e024ce X-VCS-Branch: master Date: Sat, 17 Oct 2015 17:02:16 +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: 0dade611-5be2-435d-85a5-0a0551d0c962 X-Archives-Hash: daee1c2d5ff5a8b586f6679746908983 commit: 26930c8978e8ae49829ee8b13e9da9ca05e024ce Author: Luis Ressel aixah de> AuthorDate: Thu Oct 15 10:44:42 2015 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sat Oct 17 16:47:50 2015 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=26930c89 portage: New read-only interfaces for srcrepo and logs Create portage_read_srcrepo and portage_read_log interfaces. policy/modules/contrib/portage.if | 40 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/policy/modules/contrib/portage.if b/policy/modules/contrib/portage.if index 4652319..962dcca 100644 --- a/policy/modules/contrib/portage.if +++ b/policy/modules/contrib/portage.if @@ -498,6 +498,46 @@ interface(`portage_read_ebuild',` ######################################## ## +## Read portage log files +## +## +## +## Domain allowed access +## +## +# +interface(`portage_read_log',` + gen_require(` + type portage_log_t; + ') + + logging_search_logs($1) + read_files_pattern($1, portage_log_t, portage_log_t) +') + +######################################## +## +## Read portage src repository files +## +## +## +## Domain allowed access +## +## +# +interface(`portage_read_srcrepo',` + gen_require(` + type portage_ebuild_t, portage_srcrepo_t; + ') + + files_search_usr($1) + list_dirs_pattern($1, portage_ebuild_t, portage_srcrepo_t) + read_files_pattern($1, portage_srcrepo_t, portage_srcrepo_t) + read_lnk_files_pattern($1, portage_srcrepo_t, portage_srcrepo_t) +') + +######################################## +## ## Do not audit writing portage cache files ## ## 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 CB39313888F for ; Sat, 17 Oct 2015 17:02:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4588521C0DA; Sat, 17 Oct 2015 17:02:08 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 87C4621C0DF for ; Sat, 17 Oct 2015 17:02:07 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 41ABE3408F9 for ; Sat, 17 Oct 2015 17:02:06 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BF14911B8 for ; Sat, 17 Oct 2015 17:02:03 +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: <1445100470.26930c8978e8ae49829ee8b13e9da9ca05e024ce.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:next commit in: policy/modules/contrib/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/contrib/portage.if X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 26930c8978e8ae49829ee8b13e9da9ca05e024ce X-VCS-Branch: next Date: Sat, 17 Oct 2015 17:02:03 +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: 0a231a5e-5827-4af3-b479-92a179cf5808 X-Archives-Hash: bd4a35619638ecc6a6feabfaffc03a8d Message-ID: <20151017170203.0GPuqKA4Hbdcn4vzcHsjY3OL0pk1dQQiZD7ODNXFnJ4@z> commit: 26930c8978e8ae49829ee8b13e9da9ca05e024ce Author: Luis Ressel aixah de> AuthorDate: Thu Oct 15 10:44:42 2015 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sat Oct 17 16:47:50 2015 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=26930c89 portage: New read-only interfaces for srcrepo and logs Create portage_read_srcrepo and portage_read_log interfaces. policy/modules/contrib/portage.if | 40 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/policy/modules/contrib/portage.if b/policy/modules/contrib/portage.if index 4652319..962dcca 100644 --- a/policy/modules/contrib/portage.if +++ b/policy/modules/contrib/portage.if @@ -498,6 +498,46 @@ interface(`portage_read_ebuild',` ######################################## ## +## Read portage log files +## +## +## +## Domain allowed access +## +## +# +interface(`portage_read_log',` + gen_require(` + type portage_log_t; + ') + + logging_search_logs($1) + read_files_pattern($1, portage_log_t, portage_log_t) +') + +######################################## +## +## Read portage src repository files +## +## +## +## Domain allowed access +## +## +# +interface(`portage_read_srcrepo',` + gen_require(` + type portage_ebuild_t, portage_srcrepo_t; + ') + + files_search_usr($1) + list_dirs_pattern($1, portage_ebuild_t, portage_srcrepo_t) + read_files_pattern($1, portage_srcrepo_t, portage_srcrepo_t) + read_lnk_files_pattern($1, portage_srcrepo_t, portage_srcrepo_t) +') + +######################################## +## ## Do not audit writing portage cache files ## ##