1 |
commit: ab7293ed112926cd2bb3d08838425ded6e681df6 |
2 |
Author: Kenton Groombridge <concord <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Apr 19 22:53:44 2022 +0000 |
4 |
Commit: Kenton Groombridge <concord <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 6 15:12:59 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=ab7293ed |
7 |
|
8 |
portage: allow portage to map ebuild files |
9 |
|
10 |
When portage syncs a repo with git, git will mmap() ebuild files. Allow |
11 |
portage to map ebuild files to fix permission denied errors on syncing. |
12 |
|
13 |
Bug: https://bugs.gentoo.org/833017 |
14 |
Signed-off-by: Kenton Groombridge <me <AT> concord.sh> |
15 |
|
16 |
policy/modules/admin/portage.te | 2 ++ |
17 |
1 file changed, 2 insertions(+) |
18 |
|
19 |
diff --git a/policy/modules/admin/portage.te b/policy/modules/admin/portage.te |
20 |
index 86966705..e3a19574 100644 |
21 |
--- a/policy/modules/admin/portage.te |
22 |
+++ b/policy/modules/admin/portage.te |
23 |
@@ -200,6 +200,8 @@ domain_dontaudit_read_all_domains_state(portage_t) |
24 |
files_manage_all_files(portage_t) |
25 |
# eselect uses file, which mmap()s its db |
26 |
files_map_usr_files(portage_t) |
27 |
+# portage executing git mmap()s ebuild files when syncing |
28 |
+allow portage_t portage_ebuild_t:file map; |
29 |
|
30 |
selinux_get_fs_mount(portage_t) |