commit: 8ed40c400e05797f6abd6c372bd583d6e175c182
Author: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
AuthorDate: Sun May 4 10:51:07 2014 +0000
Commit: Sven Vermeulen <swift <AT> gentoo <DOT> 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)