1 |
commit: 8ed40c400e05797f6abd6c372bd583d6e175c182 |
2 |
Author: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be> |
3 |
AuthorDate: Sun May 4 10:51:07 2014 +0000 |
4 |
Commit: Sven Vermeulen <swift <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 4 10:51:07 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=8ed40c40 |
7 |
|
8 |
gcc-config uses libffi (execute tmp) and accesses non-root directory info (portage or user for overlays) |
9 |
|
10 |
--- |
11 |
policy/modules/contrib/portage.te | 2 ++ |
12 |
1 file changed, 2 insertions(+) |
13 |
|
14 |
diff --git a/policy/modules/contrib/portage.te b/policy/modules/contrib/portage.te |
15 |
index 443460b..149586e 100644 |
16 |
--- a/policy/modules/contrib/portage.te |
17 |
+++ b/policy/modules/contrib/portage.te |
18 |
@@ -405,7 +405,9 @@ gen_tunable(portage_mount_fs, false) |
19 |
# GCC config local policy |
20 |
# |
21 |
|
22 |
+ allow gcc_config_t self:capability dac_override; |
23 |
allow gcc_config_t gcc_config_tmp_t:file manage_file_perms; |
24 |
+ can_exec(gcc_config_t, gcc_config_tmp_t) # libffi support |
25 |
files_tmp_filetrans(gcc_config_t, gcc_config_tmp_t, file) |
26 |
|
27 |
files_manage_etc_runtime_files(gcc_config_t) |