Gentoo Archives: gentoo-commits

From: Kenton Groombridge <concord@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/hardened-refpolicy:various-20211111 commit in: policy/modules/admin/
Date: Mon, 06 Jun 2022 15:15:31
Message-Id: 1654528498.25cc0b997697b8cb53f2e45e44c2bacfe6f96afc.concord@gentoo
1 commit: 25cc0b997697b8cb53f2e45e44c2bacfe6f96afc
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:14:58 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=25cc0b99
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 <concord <AT> gentoo.org>
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)