Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 578358 - /usr/portage/distfiles/hg-src needs to be labeled portage_srcrepo_t
Summary: /usr/portage/distfiles/hg-src needs to be labeled portage_srcrepo_t
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: SELinux (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sven Vermeulen (RETIRED)
URL:
Whiteboard: sec-policy r4
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-27 13:29 UTC by Jannis Mast
Modified: 2016-09-15 09:35 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jannis Mast 2016-03-27 13:29:33 UTC
/usr/portage/distfiles/hg-src is currently labeled portage_ebuild_t by default but it needs to be labeled portage_srcrepo_t for mercurial to work.
Right now, this causes ebuilds that fetch their source using mercurial.eclass to fail with "Permission denied" errors from mercurial.
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2016-04-01 17:49:23 UTC
Thanks. This has been committed to our policy repository.

You can temporarily enable this manually through the following command if you can't wait for the new policy release:

~# semanage fcontext -a -t portage_srcrepo_t "/usr/portage/hg-src(/.*)?"
Comment 2 Sven Vermeulen (RETIRED) gentoo-dev 2016-06-05 10:56:56 UTC
r4 now in tree, ~arch
Comment 3 Jason Zaman gentoo-dev 2016-09-15 09:35:09 UTC
stable