From: "Kenton Groombridge" <concord@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/hardened-refpolicy:various-20211111 commit in: policy/modules/admin/
Date: Mon, 6 Jun 2022 15:15:28 +0000 (UTC) [thread overview]
Message-ID: <1654528498.25cc0b997697b8cb53f2e45e44c2bacfe6f96afc.concord@gentoo> (raw)
Message-ID: <20220606151528.tlzwoo06_6hkArpcYIL8wshsy54vOw6pAbCE7mfBFxU@z> (raw)
commit: 25cc0b997697b8cb53f2e45e44c2bacfe6f96afc
Author: Kenton Groombridge <concord <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 19 22:53:44 2022 +0000
Commit: Kenton Groombridge <concord <AT> gentoo <DOT> org>
CommitDate: Mon Jun 6 15:14:58 2022 +0000
URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=25cc0b99
portage: allow portage to map ebuild files
When portage syncs a repo with git, git will mmap() ebuild files. Allow
portage to map ebuild files to fix permission denied errors on syncing.
Bug: https://bugs.gentoo.org/833017
Signed-off-by: Kenton Groombridge <concord <AT> gentoo.org>
policy/modules/admin/portage.te | 2 ++
1 file changed, 2 insertions(+)
diff --git a/policy/modules/admin/portage.te b/policy/modules/admin/portage.te
index 86966705..e3a19574 100644
--- a/policy/modules/admin/portage.te
+++ b/policy/modules/admin/portage.te
@@ -200,6 +200,8 @@ domain_dontaudit_read_all_domains_state(portage_t)
files_manage_all_files(portage_t)
# eselect uses file, which mmap()s its db
files_map_usr_files(portage_t)
+# portage executing git mmap()s ebuild files when syncing
+allow portage_t portage_ebuild_t:file map;
selinux_get_fs_mount(portage_t)
next reply other threads:[~2022-06-06 15:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-06 15:15 Kenton Groombridge [this message]
2022-06-06 15:15 ` [gentoo-commits] proj/hardened-refpolicy:various-20211111 commit in: policy/modules/admin/ Kenton Groombridge
-- strict thread matches above, loose matches on Subject: below --
2022-10-12 13:35 [gentoo-commits] proj/hardened-refpolicy:concord-dev " Kenton Groombridge
2022-10-12 13:34 Kenton Groombridge
2022-09-03 20:04 [gentoo-commits] proj/hardened-refpolicy:master " Kenton Groombridge
2022-10-12 13:34 ` [gentoo-commits] proj/hardened-refpolicy:concord-dev " Kenton Groombridge
2022-06-06 15:13 [gentoo-commits] proj/hardened-refpolicy:various-20211111 " Kenton Groombridge
2022-06-06 15:13 ` [gentoo-commits] proj/hardened-refpolicy:concord-dev " Kenton Groombridge
2022-06-06 15:08 Kenton Groombridge
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1654528498.25cc0b997697b8cb53f2e45e44c2bacfe6f96afc.concord@gentoo \
--to=concord@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox