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 180D11381FA for ; Sun, 4 May 2014 10:51:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7839AE0A72; Sun, 4 May 2014 10:51:54 +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 13097E0A72 for ; Sun, 4 May 2014 10:51:54 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E047C3403D2 for ; Sun, 4 May 2014 10:51:52 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id A8DC61818D for ; Sun, 4 May 2014 10:51:51 +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: <1399200667.8ed40c400e05797f6abd6c372bd583d6e175c182.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: 8ed40c400e05797f6abd6c372bd583d6e175c182 X-VCS-Branch: master Date: Sun, 4 May 2014 10:51:51 +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: d7b79aad-8aa4-4502-a109-c8fe6ef94526 X-Archives-Hash: d7b8d9576ac7638596cd309c950fcb0c commit: 8ed40c400e05797f6abd6c372bd583d6e175c182 Author: Sven Vermeulen siphos be> AuthorDate: Sun May 4 10:51:07 2014 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Sun May 4 10:51:07 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=8ed40c40 gcc-config uses libffi (execute tmp) and accesses non-root directory info (portage or user for overlays) --- policy/modules/contrib/portage.te | 2 ++ 1 file changed, 2 insertions(+) diff --git a/policy/modules/contrib/portage.te b/policy/modules/contrib/portage.te index 443460b..149586e 100644 --- a/policy/modules/contrib/portage.te +++ b/policy/modules/contrib/portage.te @@ -405,7 +405,9 @@ gen_tunable(portage_mount_fs, false) # GCC config local policy # + allow gcc_config_t self:capability dac_override; allow gcc_config_t gcc_config_tmp_t:file manage_file_perms; + can_exec(gcc_config_t, gcc_config_tmp_t) # libffi support files_tmp_filetrans(gcc_config_t, gcc_config_tmp_t, file) files_manage_etc_runtime_files(gcc_config_t)