perfinion 15/07/23 05:15:17 Modified: policycoreutils-9999.ebuild ChangeLog Log: Rebuild policy store in postinst(), there are some changes to the format (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0x7EF137EC935B0EAF)
Revision Changes Path 1.4 sys-apps/policycoreutils/policycoreutils-9999.ebuild file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/policycoreutils/policycoreutils-9999.ebuild?rev=1.4&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/policycoreutils/policycoreutils-9999.ebuild?rev=1.4&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/policycoreutils/policycoreutils-9999.ebuild?r1=1.3&r2=1.4 Index: policycoreutils-9999.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/policycoreutils-9999.ebuild,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- policycoreutils-9999.ebuild 17 Jul 2015 08:03:06 -0000 1.3 +++ policycoreutils-9999.ebuild 23 Jul 2015 05:15:17 -0000 1.4 @@ -1,6 +1,6 @@ # Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/policycoreutils-9999.ebuild,v 1.3 2015/07/17 08:03:06 perfinion Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/policycoreutils-9999.ebuild,v 1.4 2015/07/23 05:15:17 perfinion Exp $ EAPI="5" PYTHON_COMPAT=( python{2_7,3_3,3_4} ) @@ -181,4 +181,11 @@ pkg_postinst() { # The selinux_gentoo init script is no longer needed with recent OpenRC elog "The selinux_gentoo init script has been removed in this version as it is not required after OpenRC 0.13." + + for POLICY_TYPE in ${POLICY_TYPES} ; do + # There have been some changes to the policy store, rebuilding now. + # https://marc.info/?l=selinux&m=143757277819717&w=2 + einfo "Rebuilding store ${POLICY_TYPE} (without re-loading)." + semodule -s "${POLICY_TYPE}" -n -B || die "Failed to rebuild policy store ${POLICY_TYPE}" + done } 1.157 sys-apps/policycoreutils/ChangeLog file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/policycoreutils/ChangeLog?rev=1.157&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/policycoreutils/ChangeLog?rev=1.157&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/policycoreutils/ChangeLog?r1=1.156&r2=1.157 Index: ChangeLog =================================================================== RCS file: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/ChangeLog,v retrieving revision 1.156 retrieving revision 1.157 diff -u -r1.156 -r1.157 --- ChangeLog 17 Jul 2015 08:03:06 -0000 1.156 +++ ChangeLog 23 Jul 2015 05:15:17 -0000 1.157 @@ -1,6 +1,9 @@ # ChangeLog for sys-apps/policycoreutils # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/ChangeLog,v 1.156 2015/07/17 08:03:06 perfinion Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/ChangeLog,v 1.157 2015/07/23 05:15:17 perfinion Exp $ + + 23 Jul 2015; Jason Zaman <[email protected]> policycoreutils-9999.ebuild: + Rebuild policy store in postinst(), there are some changes to the format 17 Jul 2015; Jason Zaman <[email protected]> policycoreutils-9999.ebuild: add python3 compat to live ebuild
