commit:     34a5c9f83485ba36ea21940a6ecc3932636f51f3
Author:     Luis Ressel <aranea <AT> aixah <DOT> de>
AuthorDate: Wed Oct 25 00:37:05 2017 +0000
Commit:     Jason Zaman <perfinion <AT> gentoo <DOT> org>
CommitDate: Sun Oct 29 13:57:28 2017 +0000
URL:        
https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=34a5c9f8

portage: Allow portage compile domains to map portage_tmpfs_t files

This is required by a python script in the firefox build system.

Bug: https://bugs.gentoo.org/635384

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

diff --git a/policy/modules/contrib/portage.if 
b/policy/modules/contrib/portage.if
index 6388110e..637b0d0d 100644
--- a/policy/modules/contrib/portage.if
+++ b/policy/modules/contrib/portage.if
@@ -124,6 +124,7 @@ interface(`portage_compile_domain',`
        manage_lnk_files_pattern($1, portage_tmpfs_t, portage_tmpfs_t)
        manage_fifo_files_pattern($1, portage_tmpfs_t, portage_tmpfs_t)
        manage_sock_files_pattern($1, portage_tmpfs_t, portage_tmpfs_t)
+       allow $1 portage_tmpfs_t:file map;
        fs_tmpfs_filetrans($1, portage_tmpfs_t, { dir file lnk_file sock_file 
fifo_file })
 
        kernel_read_system_state($1)

Reply via email to