Summary: | Portage should use force relabeling for installed files to have system_u as target SELinux user | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Sven Vermeulen (RETIRED) <swift> |
Component: | SELinux | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | selinux |
Priority: | Normal | Keywords: | InVCS |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 484436 | ||
Attachments: | Force SELinux user during relabel |
Description
Sven Vermeulen (RETIRED)
2014-11-23 16:02:36 UTC
Created attachment 390126 [details, diff]
Force SELinux user during relabel
Small fix to misc-functions.sh to use the "-F" option. Tested locally again and the files are now installed with the right, complete context.
Can be fixed manually on systems as well (as workaround) by editing /usr/lib/portage/bin/misc-functions.sh (around line 1131).
I've posted your patch for review here: http://thread.gmane.org/gmane.linux.gentoo.portage.devel/4838 This is in the master branch now: https://github.com/gentoo/portage/commit/bcac54411c462aa59fe874325e4843f61dc71312 released in portage-2.2.14 |