commit:     2fc780e90665d3d003fa879a83d478c9f7da2196
Author:     Jason Zaman <jason <AT> perfinion <DOT> com>
AuthorDate: Sat Dec 23 15:41:47 2017 +0000
Commit:     Jason Zaman <perfinion <AT> gentoo <DOT> org>
CommitDate: Sat Dec 23 15:41:47 2017 +0000
URL:        
https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=2fc780e9

portage: allow compile domains to map portage_tmp_t

 policy/modules/contrib/portage.if | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/policy/modules/contrib/portage.if 
b/policy/modules/contrib/portage.if
index 240838d2..23c15ba7 100644
--- a/policy/modules/contrib/portage.if
+++ b/policy/modules/contrib/portage.if
@@ -117,7 +117,7 @@ interface(`portage_compile_domain',`
        manage_sock_files_pattern($1, portage_tmp_t, portage_tmp_t)
        files_tmp_filetrans($1, portage_tmp_t, { dir file lnk_file sock_file 
fifo_file })
        # SELinux-enabled programs running in the sandbox
-       allow $1 portage_tmp_t:file relabel_file_perms;
+       allow $1 portage_tmp_t:file { relabel_file_perms map };
        allow $1 portage_tmp_t:dir relabel_dir_perms;
 
        manage_files_pattern($1, portage_tmpfs_t, portage_tmpfs_t)

Reply via email to