Re: selinux-base-policy merge failure

Sven Vermeulen <[email protected]>
Newsgroups gmane.linux.gentoo.hardened
Message-ID <[email protected]>
On Thu, Feb 27, 2014 at 09:02:54PM -0600, Erik Mackdanz wrote:
> I'm hitting symptoms as described in the "Policy Store is Corrupt" section
> of the troubleshooting page (
> http://www.gentoo.org/proj/en/hardened/selinux/selinux-handbook.xml?part=2&chap=6
> )
> 
> msi erik # semodule -n -B
> libsemanage.semanage_link_sandbox: Could not access sandbox base file
> /etc/selinux/strict/modules/tmp/base.pp. (No such file or directory).
> semodule:  Failed!
> 
> As directed, I re-emerge my sec-policy packages:
> ...
> FEATURES="-selinux" emerge -1av $(qlist -IC sec-policy)
> ...
> 
> however selinux-base-policy fails.  It gets through the sandbox install but
> fails at the merge with:
> 
> Error opening /etc/selinux/strict/contexts/files/file_contexts.local: No
> such file or directory
> libsemanage.sefcontext_compile: sefcontext_compile returned error code 255.
> Compiling /etc/selinux/strict/contexts/files/file_contexts.local
> libsemanage.semanage_install_active: Could not copy
> /etc/selinux/strict/modules/active/file_contexts.homedirs to
> /etc/selinux/strict/contexts/files/file_contexts.homedirs. (No such file or
> directory)
> semodule: failed!
> 
> Any ideas?  I'm sure this package merged successfully a couple days ago.

Which directories do exist (these are all "no such file or directory" so it
would be good to know if they exist and if not, if their parent directories
exist, etc.)

Most of the directories are build by the selinux-base package.

Wkr,
	Sven Vermeulen
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.