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

Bug 489088

Summary: sys-apps/portage-2.2.7: FEATURES='cgroup ipc-sandbox network-sandbox' do not fail gracefully
Product: Portage Development Reporter: Nikoli <nikoli>
Component: UnclassifiedAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: normal CC: arthur, mgorny, pacho, rhill
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Nikoli 2013-10-23 03:45:34 UTC
Enabled FEATURES='cgroup ipc-sandbox network-sandbox' and tried booting kernel with 'CONFIG_NAMESPACES is not set' and running emerge: instead of graceful warning it prints this message during every ebuild phase:
Unable to unshare: EINVAL

I think when any of FEATURES='cgroup ipc-sandbox network-sandbox' is enabled emerge should check during every start if these linux kernel features are available and working correctly, if they are not, emerge should print red warning and do not try to use them or better exit with error.
Comment 1 Sebastian Luther (few) 2013-11-29 20:41:36 UTC
@mgorny: Could you comment/fix?
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-11-29 21:45:15 UTC
(In reply to Sebastian Luther (few) from comment #1)
> @mgorny: Could you comment/fix?

I agree that a more helpful error message would be great but I can't work on the patch right now. Sorry.