Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 699552

Summary: (selinux) all install-xattr implementations are broken
Product: Portage Development Reporter: Raimonds Cicans <ray>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 699550, 699548    
Bug Blocks:    

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
IMHO
- 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 ***