Gentoo Archives: gentoo-commits

From: Kenton Groombridge <concord@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/hardened-refpolicy:concord-dev commit in: policy/modules/admin/
Date: Mon, 06 Jun 2022 15:09:00
Message-Id: 1654528036.b22fed5fbdff44ad8164c546744649dfa11bd2d3.concord@gentoo
1 commit: b22fed5fbdff44ad8164c546744649dfa11bd2d3
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:07:16 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=b22fed5f
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 Signed-off-by: Kenton Groombridge <me <AT> concord.sh>
14
15 policy/modules/admin/portage.te | 2 ++
16 1 file changed, 2 insertions(+)
17
18 diff --git a/policy/modules/admin/portage.te b/policy/modules/admin/portage.te
19 index 86966705..e3a19574 100644
20 --- a/policy/modules/admin/portage.te
21 +++ b/policy/modules/admin/portage.te
22 @@ -200,6 +200,8 @@ domain_dontaudit_read_all_domains_state(portage_t)
23 files_manage_all_files(portage_t)
24 # eselect uses file, which mmap()s its db
25 files_map_usr_files(portage_t)
26 +# portage executing git mmap()s ebuild files when syncing
27 +allow portage_t portage_ebuild_t:file map;
28
29 selinux_get_fs_mount(portage_t)