Summary: | On SELinux, emerging packages fails with "OSError: [Errno 22] Invalid argument" when done through a terminal emulator | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | bleedingsamurai |
Component: | Hardened | Assignee: | SE Linux Bugs <selinux> |
Status: | VERIFIED FIXED | ||
Severity: | minor | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
bleedingsamurai
2011-11-10 00:25:35 UTC
It means that the context in which you were sitting when you launched portage wasn't sysadm_t. Portage itself checks for a proper context but if it isn't in portage_t (which can only be transitioned to from sysadm_t) it b0rks like that. You can temporarily disable that with FEATURES="-selinux", but be aware that that means SELinux support in Portage is disabled (including labeling the files it installs). Better is to focus on why the context of your root account isn't "sysadm_t". I'll see to it that this error is documented in the troubleshooting section of the handbook or in the FAQ. In hardened-docs overlay Pushed to main site |