Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 699552 - (selinux) all install-xattr implementations are broken
Summary: (selinux) all install-xattr implementations are broken
Status: RESOLVED DUPLICATE of bug 699548
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal major with 1 vote (vote)
Assignee: Portage team
Depends on: 699550 699548
  Show dependency tree
Reported: 2019-11-07 17:07 UTC by Raimonds Cicans
Modified: 2019-11-07 18:24 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Raimonds Cicans 2019-11-07 17:07:48 UTC
(Bug for tracking related bugs)

Gentoo portage can use one of two install-xattr implementations  (PORTAGE_INSTALL_XATTR_IMPLEMENTATION):
“c” (default, from package “sys-apps/install-xattr”) and “python” (built in implementation).
Both implementations incorrectly process “-Z” flag, which may lead to failed build (installation phase).

As I understand “install-xattr” tries to mimic “install” from package “sys-apps/coreutils” with some additional “xattr” features.
According “install” manual, it have following flags related selinux to set selinux context:
-Z : set default selinux context (no any options!!!)
--context :  set default selinux context
--context=CTX :   set selinux context to CTX

But (due programmers’ sloppiness?)
in “python” case option for “-Z” flag is required
but in “c” case it is allowed for “-Z” flag to have optional options, which lead to strange errors.
Comment 1 Mike Gilbert gentoo-dev 2019-11-07 17:27:26 UTC
I don't really see the need for a tracker for two bugs. Assigning this back to you since there's nothing for the Portage team to do on this.
Comment 2 Raimonds Cicans 2019-11-07 17:57:21 UTC
- install-xattr is important part of portage on Selinux systems
- because blocker bugs may lead to very different strange errors (depending on package), _ALL_ open bugs related to build fails at installation phase on Selinux profiles must be considered as blockers of this bug
- until dependant bugs are fixed, portage on Selinux profiles should be considered broken.
- Portage team is responsible for portage

If you do not agree, please close this bug.
Comment 3 Mike Gilbert gentoo-dev 2019-11-07 18:24:13 UTC

*** This bug has been marked as a duplicate of bug 699548 ***