portage: Grant the map permissions neccessary for git and install
PATCH 1/1 portage: Grant the map permissions neccessary for git and install
--- portage.if | 4 ++++ 1 file changed, 4 insertions(+)
portage.if +4 -0
@@ -102,6 +102,7 @@ interface(`portage_compile_domain',` manage_dirs_pattern($1, portage_srcrepo_t, portage_srcrepo_t) manage_files_pattern($1, portage_srcrepo_t, portage_srcrepo_t) manage_lnk_files_pattern($1, portage_srcrepo_t, portage_srcrepo_t) + allow $1 portage_srcrepo_t:file map; # run scripts out of the build directory can_exec(portage_sandbox_t, portage_tmp_t)
@@ -187,6 +188,9 @@ interface(`portage_compile_domain',` # SELinux-enabled programs running in the sandbox seutil_libselinux_linked($1) + # required by install + seutil_read_file_contexts($1) + tunable_policy(`portage_use_nfs',` fs_getattr_nfs($1) fs_manage_nfs_dirs($1)
Signature · 1 line
2.14.1
PATCH 1/1 portage: Grant the map permissions neccessary for git and install
portage.if interface(`portage_compile_domain',` · line 105
Quoted 13 lines · Luis Ressel via refpolicy
--- portage.if | 4 ++++ 1 file changed, 4 insertions(+)portage.if +1
-0@@ -102,6 +102,7 @@ interface(`portage_compile_domain',` manage_dirs_pattern($1, portage_srcrepo_t, portage_srcrepo_t) manage_files_pattern($1, portage_srcrepo_t, portage_srcrepo_t) manage_lnk_files_pattern($1, portage_srcrepo_t, portage_srcrepo_t) + allow $1 portage_srcrepo_t:file map;
When you say needed for git, is this when using an ebuild that builds from a git repo rather than unpacking a tarball? What is it mapping?
Quoted 13 lines
portage.if +3
-0# run scripts out of the build directory can_exec(portage_sandbox_t, portage_tmp_t)@@ -187,6 +188,9 @@ interface(`portage_compile_domain',` # SELinux-enabled programs running in the sandbox seutil_libselinux_linked($1) + # required by install + seutil_read_file_contexts($1) + tunable_policy(`portage_use_nfs',` fs_getattr_nfs($1) fs_manage_nfs_dirs($1)
Signature · 1 line
Chris PeBenito
PATCH 1/1 portage: Grant the map permissions neccessary for git and install
Quoted 5 lines · On Mon, 11 Sep 2017 20:12:51 -0400 Chris PeBenito via refpolicy…
Quoted 4 lines · Luis Ressel via refpolicy
--- portage.if | 4 ++++ 1 file changed, 4 insertions(+)
Quoted 13 lines
portage.if interface(`portage_compile_domain',` · line 106
Quoted 10 lines
portage.if +1
-0@@ -102,6 +102,7 @@ interface(`portage_compile_domain',` manage_dirs_pattern($1, portage_srcrepo_t, portage_srcrepo_t) manage_files_pattern($1, portage_srcrepo_t, portage_srcrepo_t) manage_lnk_files_pattern($1, portage_srcrepo_t, portage_srcrepo_t) + allow $1 portage_srcrepo_t:file map;When you say needed for git, is this when using an ebuild that builds from a git repo rather than unpacking a tarball? What is it mapping?
Exactly, this is for live ebuilds and other users of git repos. git
maps its packfiles, and doesn't fall back to read().
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
Url : http://oss.tresys.com/pipermail/refpolicy/attachments/20170912/5c7ec51b/attachment.bin
PATCH 1/1 portage: Grant the map permissions neccessary for git and install
In reply to Chris PeBenitoQuoted 5 lines · Chris PeBenito via refpolicy
Quoted 4 lines · Luis Ressel via refpolicy
--- portage.if | 4 ++++ 1 file changed, 4 insertions(+)
Quoted 12 lines
portage.if interface(`portage_compile_domain',` · line 105
Quoted 9 lines
portage.if +1
-0@@ -102,6 +102,7 @@ interface(`portage_compile_domain',` manage_dirs_pattern($1, portage_srcrepo_t, portage_srcrepo_t) manage_files_pattern($1, portage_srcrepo_t, portage_srcrepo_t) manage_lnk_files_pattern($1, portage_srcrepo_t, portage_srcrepo_t) + allow $1 portage_srcrepo_t:file map;When you say needed for git, is this when using an ebuild that builds from a git repo rather than unpacking a tarball? What is it mapping?
i think these are objects in .git, these are binaries and are always mapped by git client
Quoted 23 lines
Quoted 15 lines
portage.if +3
-0# run scripts out of the build directory can_exec(portage_sandbox_t, portage_tmp_t)@@ -187,6 +188,9 @@ interface(`portage_compile_domain',` # SELinux-enabled programs running in the sandbox seutil_libselinux_linked($1) + # required by install + seutil_read_file_contexts($1) + tunable_policy(`portage_use_nfs',` fs_getattr_nfs($1) fs_manage_nfs_dirs($1)Signature · 5 lines
Chris PeBenito _______________________________________________ refpolicy mailing list refpolicy at oss.tresys.com http://oss.tresys.com/mailman/listinfo/refpolicy
Signature · 10 lines
Key fingerprint = 5F4D 3CDB D3F8 3652 FBD8 02D5 3B6C 5F1D 2C7B 6B02 https://sks-keyservers.net/pks/lookup?op=get&search=0x3B6C5F1D2C7B6B02 Dominick Grift -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 659 bytes Desc: not available Url : http://oss.tresys.com/pipermail/refpolicy/attachments/20170912/e999c16c/attachment.bin
PATCH 1/1 portage: Grant the map permissions neccessary for git and install
In reply to Luis ResselQuoted 17 lines · Luis Ressel via refpolicy
--- portage.if | 4 ++++ 1 file changed, 4 insertions(+)portage.if +1
-0@@ -102,6 +102,7 @@ interface(`portage_compile_domain',` manage_dirs_pattern($1, portage_srcrepo_t, portage_srcrepo_t) manage_files_pattern($1, portage_srcrepo_t, portage_srcrepo_t) manage_lnk_files_pattern($1, portage_srcrepo_t, portage_srcrepo_t) + allow $1 portage_srcrepo_t:file map; # run scripts out of the build directory can_exec(portage_sandbox_t, portage_tmp_t)
portage.if interface(`portage_compile_domain',` · line 196
Quoted 9 lines
portage.if +3
-0@@ -187,6 +188,9 @@ interface(`portage_compile_domain',` # SELinux-enabled programs running in the sandbox seutil_libselinux_linked($1) + # required by install + seutil_read_file_contexts($1) + tunable_policy(`portage_use_nfs',` fs_getattr_nfs($1) fs_manage_nfs_dirs($1)
Merged.
Signature · 1 line
Chris PeBenito