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 C1A79138247 for ; Mon, 16 Dec 2013 14:14:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D5794E07B3; Mon, 16 Dec 2013 14:14:04 +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 6BC5CE07B3 for ; Mon, 16 Dec 2013 14:14:03 +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 5E9BD33F0F0 for ; Mon, 16 Dec 2013 14:14:02 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 0FF58E56C6 for ; Mon, 16 Dec 2013 14:14:01 +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: <1387203014.f7816680a18cda6052a7f0077623bf1daf68928a.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: f7816680a18cda6052a7f0077623bf1daf68928a X-VCS-Branch: master Date: Mon, 16 Dec 2013 14:14:01 +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: 86b7b8a6-8174-4e1e-9068-ea9623ec9301 X-Archives-Hash: 760e6e6d7b6dc4bbf14ba4acea5078db commit: f7816680a18cda6052a7f0077623bf1daf68928a Author: Sven Vermeulen siphos be> AuthorDate: Mon Dec 16 14:10:14 2013 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Mon Dec 16 14:10:14 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=f7816680 Fix bug #488692 - Support portage_mount_fs Portage might want to mount /boot in order to install new kernel information. This is optional and users can disable this behavior by setting DONT_MOUNT_BOOT. For those users that do want Portage to mount /boot, they can now toggle portage_mount_fs to allow this SELinux-wise. https://bugs.gentoo.org/show_bug.cgi?id=488692 --- policy/modules/contrib/portage.te | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/policy/modules/contrib/portage.te b/policy/modules/contrib/portage.te index 5a161e5..d5b29d6 100644 --- a/policy/modules/contrib/portage.te +++ b/policy/modules/contrib/portage.te @@ -350,6 +350,14 @@ ifdef(`hide_broken_symptoms',` ifdef(`distro_gentoo',` +## +##

+## Determine whether portage can mount file systems (used to mount /boot for instance). +##

+##
+gen_tunable(portage_mount_fs, false) + + ########################################## # # Type declarations @@ -423,6 +431,12 @@ ifdef(`distro_gentoo',` libs_relabel_lib_dirs(portage_t) libs_relabel_lib_files(portage_t) + optional_policy(` + tunable_policy(`portage_mount_fs',` + mount_domtrans(portage_t) + ') + ') + ########################################## # # Portage sandbox local policy