The selinux-policy-2.eclass file should support .cil files as well as the regular .te/.if/.fc files in the POLICY_FILES as well as refpolicy structure (latter not validated yet). Reproducible: Always Steps to Reproduce: Create a selinux-test.ebuild with a test.cil file referenced in it (as stored in the files/ directory): # Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sec-policy/selinux-hadoop/selinux-hadoop-9999.ebuild,v 1.5 2015/03/22 13:47:33 swift Exp $ EAPI="5" IUSE="" MODS="test" POLICY_FILES="test.cil" inherit selinux-policy-2 DESCRIPTION="SELinux policy for hadoop" if [[ $PV == 9999* ]] ; then KEYWORDS="" else KEYWORDS="~amd64 ~x86" fi Actual Results: Trying to install the package fails. The eclass does not copy the .cil file and as such no resulting files exist that can be loaded. Expected Results: The .cil file is copied and treated like a .pp file.
Created attachment 410460 [details, diff] Patch against selinux-policy-2.eclass to support .cil files Current patch against the eclass which seems to work for both existing as well as .cil using policy packages.
Created attachment 410468 [details, diff] Patch against selinux-policy-2.eclass to support .cil files Small update not to use -i ... -i ... -i ... in the semodule command
Committed