Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 489088 - sys-apps/portage-2.2.7: FEATURES='cgroup ipc-sandbox network-sandbox' do not fail gracefully
Summary: sys-apps/portage-2.2.7: FEATURES='cgroup ipc-sandbox network-sandbox' do not ...
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-23 03:45 UTC by Nikoli
Modified: 2017-12-06 19:08 UTC (History)
4 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 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.