public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in eclass: selinux-policy-2.eclass ChangeLog
@ 2012-09-08 18:36 Sven Vermeulen (swift)
  0 siblings, 0 replies; 6+ messages in thread
From: Sven Vermeulen (swift) @ 2012-09-08 18:36 UTC (permalink / raw
  To: gentoo-commits

swift       12/09/08 18:36:12

  Modified:             selinux-policy-2.eclass ChangeLog
  Log:
  Support live SELinux policy builds

Revision  Changes    Path
1.14                 eclass/selinux-policy-2.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/selinux-policy-2.eclass?rev=1.14&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/selinux-policy-2.eclass?rev=1.14&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/selinux-policy-2.eclass?r1=1.13&r2=1.14

Index: selinux-policy-2.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/selinux-policy-2.eclass,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- selinux-policy-2.eclass	26 Jul 2012 12:53:01 -0000	1.13
+++ selinux-policy-2.eclass	8 Sep 2012 18:36:12 -0000	1.14
@@ -1,6 +1,6 @@
 # Copyright 1999-2012 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/selinux-policy-2.eclass,v 1.13 2012/07/26 12:53:01 swift Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/selinux-policy-2.eclass,v 1.14 2012/09/08 18:36:12 swift Exp $
 
 # Eclass for installing SELinux policy, and optionally
 # reloading the reference-policy based modules.
@@ -56,17 +56,27 @@
 # override it, but the user.
 : ${POLICY_TYPES:="targeted strict mcs mls"}
 
-inherit eutils
+extra_eclass=""
+case ${BASEPOL} in
+	9999)	extra_eclass="git-2";
+			EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/hardened-refpolicy.git";
+			EGIT_SOURCEDIR="${WORKDIR}/refpolicy";;
+esac
+
+inherit eutils ${extra_eclass}
 
 IUSE=""
 
 HOMEPAGE="http://www.gentoo.org/proj/en/hardened/selinux/"
-if [[ -n ${BASEPOL} ]];
+if [[ -n ${BASEPOL} ]] && [[ "${BASEPOL}" != "9999" ]];
 then
 	SRC_URI="http://oss.tresys.com/files/refpolicy/refpolicy-${PV}.tar.bz2
 		http://dev.gentoo.org/~swift/patches/selinux-base-policy/patchbundle-selinux-base-policy-${BASEPOL}.tar.bz2"
-else
+elif [[ "${BASEPOL}" != "9999" ]];
+then
 	SRC_URI="http://oss.tresys.com/files/refpolicy/refpolicy-${PV}.tar.bz2"
+else
+	SRC_URI=""
 fi
 
 LICENSE="GPL-2"
@@ -101,7 +111,12 @@
 # Unpack the policy sources as offered by upstream (refpolicy). In case of EAPI
 # older than 2, call src_prepare too.
 selinux-policy-2_src_unpack() {
-	unpack ${A}
+	if [[ "${BASEPOL}" != "9999" ]];
+	then
+		unpack ${A}
+	else
+		git-2_src_unpack
+	fi
 
 	# Call src_prepare explicitly for EAPI 0 or 1
 	has "${EAPI:-0}" 0 1 && selinux-policy-2_src_prepare
@@ -127,7 +142,7 @@
 	cd "${S}/refpolicy/policy/modules" && mkdir 3rd_party;
 
 	# Patch the sources with the base patchbundle
-	if [[ -n ${BASEPOL} ]];
+	if [[ -n ${BASEPOL} ]] && [[ "${BASEPOL}" != "9999" ]];
 	then
 		cd "${S}"
 		EPATCH_MULTI_MSG="Applying SELinux policy updates ... " \



1.389                eclass/ChangeLog

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.389&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.389&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.388&r2=1.389

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v
retrieving revision 1.388
retrieving revision 1.389
diff -u -r1.388 -r1.389
--- ChangeLog	6 Sep 2012 08:30:00 -0000	1.388
+++ ChangeLog	8 Sep 2012 18:36:12 -0000	1.389
@@ -1,6 +1,9 @@
 # ChangeLog for eclass directory
 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.388 2012/09/06 08:30:00 kensington Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.389 2012/09/08 18:36:12 swift Exp $
+
+  08 Sep 2012; <swift@gentoo.org> selinux-policy-2.eclass:
+  Support live policy builds
 
   06 Sep 2012; Michael Palimaka <kensington@gentoo.org> qt4-build.eclass:
   Improve respect for *FLAGS. Fixes part of bug #427782.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: selinux-policy-2.eclass ChangeLog
@ 2013-01-26 15:01 Sven Vermeulen (swift)
  0 siblings, 0 replies; 6+ messages in thread
From: Sven Vermeulen (swift) @ 2013-01-26 15:01 UTC (permalink / raw
  To: gentoo-commits

swift       13/01/26 15:01:53

  Modified:             selinux-policy-2.eclass ChangeLog
  Log:
  Support removing SELinux modules of the defined policy stores

Revision  Changes    Path
1.16                 eclass/selinux-policy-2.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/selinux-policy-2.eclass?rev=1.16&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/selinux-policy-2.eclass?rev=1.16&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/selinux-policy-2.eclass?r1=1.15&r2=1.16

Index: selinux-policy-2.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/selinux-policy-2.eclass,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- selinux-policy-2.eclass	27 Sep 2012 16:35:42 -0000	1.15
+++ selinux-policy-2.eclass	26 Jan 2013 15:01:52 -0000	1.16
@@ -1,6 +1,6 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2013 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/selinux-policy-2.eclass,v 1.15 2012/09/27 16:35:42 axs Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/selinux-policy-2.eclass,v 1.16 2013/01/26 15:01:52 swift Exp $
 
 # Eclass for installing SELinux policy, and optionally
 # reloading the reference-policy based modules.
@@ -98,7 +98,7 @@
 	sys-devel/m4
 	>=sys-apps/checkpolicy-2.0.21"
 
-SELINUX_EXPF="src_unpack src_compile src_install pkg_postinst"
+SELINUX_EXPF="src_unpack src_compile src_install pkg_postinst pkg_postrm"
 case "${EAPI:-0}" in
 	2|3|4|5) SELINUX_EXPF+=" src_prepare" ;;
 	*) ;;
@@ -281,3 +281,31 @@
 	done
 }
 
+# @FUNCTION: selinux-policy-2_pkg_postrm
+# @DESCRIPTION:
+# Uninstall the module(s) from the SELinux policy stores, effectively
+# deactivating the policy on the system.
+selinux-policy-2_pkg_postrm() {
+	# Only if we are not upgrading
+	if [[ "${EAPI}" -lt 4 || -z "${REPLACED_BY_VERSION}" ]];
+	then
+		# build up the command in the case of multiple modules
+		local COMMAND
+		for i in ${MODS}; do
+			COMMAND="-r ${i} ${COMMAND}"
+		done
+	
+		for i in ${POLICY_TYPES}; do
+			einfo "Removing the following modules from the $i module store: ${MODS}"
+	
+			semodule -s ${i} ${COMMAND}
+			if [ $? -ne 0 ];
+			then
+				ewarn "SELinux module unload failed.";
+			else
+				einfo "SELinux modules unloaded succesfully."
+			fi
+		done
+	fi
+}
+



1.641                eclass/ChangeLog

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.641&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.641&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.640&r2=1.641

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v
retrieving revision 1.640
retrieving revision 1.641
diff -u -r1.640 -r1.641
--- ChangeLog	26 Jan 2013 11:39:41 -0000	1.640
+++ ChangeLog	26 Jan 2013 15:01:52 -0000	1.641
@@ -1,6 +1,9 @@
 # ChangeLog for eclass directory
 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.640 2013/01/26 11:39:41 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.641 2013/01/26 15:01:52 swift Exp $
+
+  26 Jan 2013; Sven Vermeulen <swift@gentoo.org> selinux-policy-2.eclass:
+  Supporting removal of SELinux modules
 
   26 Jan 2013; Michał Górny <mgorny@gentoo.org> autotools-multilib.eclass:
   Set USE defaults to make sure IUSE_IMPLICIT does not fool us.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: selinux-policy-2.eclass ChangeLog
@ 2013-03-09 12:07 Sven Vermeulen (swift)
  0 siblings, 0 replies; 6+ messages in thread
From: Sven Vermeulen (swift) @ 2013-03-09 12:07 UTC (permalink / raw
  To: gentoo-commits

swift       13/03/09 12:07:50

  Modified:             selinux-policy-2.eclass ChangeLog
  Log:
  Do not load unconfined SELinux policy module when strict policy is set

Revision  Changes    Path
1.17                 eclass/selinux-policy-2.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/selinux-policy-2.eclass?rev=1.17&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/selinux-policy-2.eclass?rev=1.17&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/selinux-policy-2.eclass?r1=1.16&r2=1.17

Index: selinux-policy-2.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/selinux-policy-2.eclass,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- selinux-policy-2.eclass	26 Jan 2013 15:01:52 -0000	1.16
+++ selinux-policy-2.eclass	9 Mar 2013 12:07:50 -0000	1.17
@@ -1,6 +1,6 @@
 # Copyright 1999-2013 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/selinux-policy-2.eclass,v 1.16 2013/01/26 15:01:52 swift Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/selinux-policy-2.eclass,v 1.17 2013/03/09 12:07:50 swift Exp $
 
 # Eclass for installing SELinux policy, and optionally
 # reloading the reference-policy based modules.
@@ -241,6 +241,11 @@
 	done
 
 	for i in ${POLICY_TYPES}; do
+		if [ "${i}" == "strict" ] && [ "${MODS}" = "unconfined" ];
+		then
+			einfo "Ignoring loading of unconfined module in strict module store.";
+			continue;
+		fi
 		einfo "Inserting the following modules into the $i module store: ${MODS}"
 
 		cd /usr/share/selinux/${i} || die "Could not enter /usr/share/selinux/${i}"



1.720                eclass/ChangeLog

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.720&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.720&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.719&r2=1.720

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v
retrieving revision 1.719
retrieving revision 1.720
diff -u -r1.719 -r1.720
--- ChangeLog	8 Mar 2013 10:26:42 -0000	1.719
+++ ChangeLog	9 Mar 2013 12:07:50 -0000	1.720
@@ -1,6 +1,9 @@
 # ChangeLog for eclass directory
 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.719 2013/03/08 10:26:42 hanno Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.720 2013/03/09 12:07:50 swift Exp $
+
+  09 Mar 2013; Sven Vermeulen <swift@gentoo.org> selinux-policy-2.eclass:
+  Do not load unconfined module with strict policy
 
   08 Mar 2013; Hanno Boeck <hanno@gentoo.org> apache-2.eclass:
   Remove re-setting of permissions every time apache gets reinstalled. See bug





^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: selinux-policy-2.eclass ChangeLog
@ 2013-12-16 14:31 Sven Vermeulen (swift)
  0 siblings, 0 replies; 6+ messages in thread
From: Sven Vermeulen (swift) @ 2013-12-16 14:31 UTC (permalink / raw
  To: gentoo-commits

swift       13/12/16 14:31:04

  Modified:             selinux-policy-2.eclass ChangeLog
  Log:
  Added HTTPS URL to EGIT_REPO_URI to allow live ebuilds to fetch data if firewall prohibits git (for SELinux eclass)

Revision  Changes    Path
1.20                 eclass/selinux-policy-2.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/selinux-policy-2.eclass?rev=1.20&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/selinux-policy-2.eclass?rev=1.20&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/selinux-policy-2.eclass?r1=1.19&r2=1.20

Index: selinux-policy-2.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/selinux-policy-2.eclass,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- selinux-policy-2.eclass	7 May 2013 09:25:17 -0000	1.19
+++ selinux-policy-2.eclass	16 Dec 2013 14:31:04 -0000	1.20
@@ -1,6 +1,6 @@
 # Copyright 1999-2013 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/selinux-policy-2.eclass,v 1.19 2013/05/07 09:25:17 swift Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/selinux-policy-2.eclass,v 1.20 2013/12/16 14:31:04 swift Exp $
 
 # Eclass for installing SELinux policy, and optionally
 # reloading the reference-policy based modules.
@@ -59,7 +59,7 @@
 extra_eclass=""
 case ${BASEPOL} in
 	9999)	extra_eclass="git-2";
-			EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/hardened-refpolicy.git";
+			EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/hardened-refpolicy.git https://git.overlays.gentoo.org/gitroot/proj/hardened-refpolicy.git";
 			EGIT_SOURCEDIR="${WORKDIR}/refpolicy";;
 esac
 



1.1082               eclass/ChangeLog

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1082&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1082&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.1081&r2=1.1082

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v
retrieving revision 1.1081
retrieving revision 1.1082
diff -u -r1.1081 -r1.1082
--- ChangeLog	6 Dec 2013 03:04:01 -0000	1.1081
+++ ChangeLog	16 Dec 2013 14:31:04 -0000	1.1082
@@ -1,6 +1,10 @@
 # ChangeLog for eclass directory
 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1081 2013/12/06 03:04:01 jcallen Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1082 2013/12/16 14:31:04 swift Exp $
+
+  16 Dec 2013; Sven Vermeulen <swift@gentoo.org> selinux-policy-2.eclass:
+  Added HTTPS URL to EGIT_REPO_URI to allow live ebuilds to fetch data if
+  firewall prohibits git
 
   06 Dec 2013; Jonathan Callen <jcallen@gentoo.org> multiprocessing.eclass:
   Fix multiprocessing.eclass for non-Linux hosts





^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: selinux-policy-2.eclass ChangeLog
@ 2014-08-08 18:35 Sven Vermeulen (swift)
  0 siblings, 0 replies; 6+ messages in thread
From: Sven Vermeulen (swift) @ 2014-08-08 18:35 UTC (permalink / raw
  To: gentoo-commits

swift       14/08/08 18:35:11

  Modified:             selinux-policy-2.eclass ChangeLog
  Log:
  Use PVR for BASEPOL in SELinux eclass

Revision  Changes    Path
1.23                 eclass/selinux-policy-2.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/selinux-policy-2.eclass?rev=1.23&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/selinux-policy-2.eclass?rev=1.23&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/selinux-policy-2.eclass?r1=1.22&r2=1.23

Index: selinux-policy-2.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/selinux-policy-2.eclass,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- selinux-policy-2.eclass	6 Aug 2014 08:25:02 -0000	1.22
+++ selinux-policy-2.eclass	8 Aug 2014 18:35:11 -0000	1.23
@@ -1,6 +1,6 @@
 # Copyright 1999-2014 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/selinux-policy-2.eclass,v 1.22 2014/08/06 08:25:02 swift Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/selinux-policy-2.eclass,v 1.23 2014/08/08 18:35:11 swift Exp $
 
 # Eclass for installing SELinux policy, and optionally
 # reloading the reference-policy based modules.
@@ -29,7 +29,7 @@
 # This variable contains the version string of the selinux-base-policy package
 # that this module build depends on. It is used to patch with the appropriate
 # patch bundle(s) that are part of selinux-base-policy.
-: ${BASEPOL:=""}
+: ${BASEPOL:=${PVR}}
 
 # @ECLASS-VARIABLE: POLICY_PATCH
 # @DESCRIPTION:



1.1346               eclass/ChangeLog

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1346&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1346&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.1345&r2=1.1346

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v
retrieving revision 1.1345
retrieving revision 1.1346
diff -u -r1.1345 -r1.1346
--- ChangeLog	8 Aug 2014 17:57:28 -0000	1.1345
+++ ChangeLog	8 Aug 2014 18:35:11 -0000	1.1346
@@ -1,6 +1,10 @@
 # ChangeLog for eclass directory
 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1345 2014/08/08 17:57:28 ottxor Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1346 2014/08/08 18:35:11 swift Exp $
+
+  08 Aug 2014; Sven Vermeulen <swift@gentoo.org> selinux-policy-2.eclass:
+  The BASEPOL variable can be deduced from the ebuild version as we no longer
+  support mixing versions
 
   08 Aug 2014; Christoph Junghans <ottxor@gentoo.org> db-use.eclass:
   added prefix support





^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: selinux-policy-2.eclass ChangeLog
@ 2014-08-23 10:37 Sven Vermeulen (swift)
  0 siblings, 0 replies; 6+ messages in thread
From: Sven Vermeulen (swift) @ 2014-08-23 10:37 UTC (permalink / raw
  To: gentoo-commits

swift       14/08/23 10:37:18

  Modified:             selinux-policy-2.eclass ChangeLog
  Log:
  Relabel depending packages so we no longer need DEPEND calls for pure policy dependencies in SELinux

Revision  Changes    Path
1.24                 eclass/selinux-policy-2.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/selinux-policy-2.eclass?rev=1.24&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/selinux-policy-2.eclass?rev=1.24&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/selinux-policy-2.eclass?r1=1.23&r2=1.24

Index: selinux-policy-2.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/selinux-policy-2.eclass,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- selinux-policy-2.eclass	8 Aug 2014 18:35:11 -0000	1.23
+++ selinux-policy-2.eclass	23 Aug 2014 10:37:18 -0000	1.24
@@ -1,6 +1,6 @@
 # Copyright 1999-2014 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/selinux-policy-2.eclass,v 1.23 2014/08/08 18:35:11 swift Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/selinux-policy-2.eclass,v 1.24 2014/08/23 10:37:18 swift Exp $
 
 # Eclass for installing SELinux policy, and optionally
 # reloading the reference-policy based modules.
@@ -314,6 +314,18 @@
 			einfo "SELinux modules loaded succesfully."
 		fi
 	done
+
+	# Relabel depending packages
+	PKGSET="";
+	if [ -x /usr/bin/qdepends ] ; then
+	  PKGSET=$(/usr/bin/qdepends -Cq -Q ${CATEGORY}/${PN});
+	elif [ -x /usr/bin/equery ] ; then
+	  PKGSET=$(/usr/bin/equery -Cq depends ${CATEGORY}/${PN});
+	fi
+	for PKG in ${PKGSET};
+	do
+      rlpkg ${PKG};
+	done
 }
 
 # @FUNCTION: selinux-policy-2_pkg_postrm



1.1355               eclass/ChangeLog

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1355&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1355&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.1354&r2=1.1355

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v
retrieving revision 1.1354
retrieving revision 1.1355
diff -u -r1.1354 -r1.1355
--- ChangeLog	18 Aug 2014 08:56:06 -0000	1.1354
+++ ChangeLog	23 Aug 2014 10:37:18 -0000	1.1355
@@ -1,6 +1,9 @@
 # ChangeLog for eclass directory
 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1354 2014/08/18 08:56:06 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1355 2014/08/23 10:37:18 swift Exp $
+
+  23 Aug 2014; Sven Vermeulen <swift@gentoo.org> selinux-policy-2.eclass:
+  Adding relabeling support for SELinux depending packages
 
   18 Aug 2014; Michał Górny <mgorny@gentoo.org> python-r1.eclass:
   Add extra quoting to prevent accidental globbing.





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-08-23 10:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-16 14:31 [gentoo-commits] gentoo-x86 commit in eclass: selinux-policy-2.eclass ChangeLog Sven Vermeulen (swift)
  -- strict thread matches above, loose matches on Subject: below --
2014-08-23 10:37 Sven Vermeulen (swift)
2014-08-08 18:35 Sven Vermeulen (swift)
2013-03-09 12:07 Sven Vermeulen (swift)
2013-01-26 15:01 Sven Vermeulen (swift)
2012-09-08 18:36 Sven Vermeulen (swift)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox