diff options
author | Sven Vermeulen <swift@gentoo.org> | 2012-07-26 12:53:01 +0000 |
---|---|---|
committer | Sven Vermeulen <swift@gentoo.org> | 2012-07-26 12:53:01 +0000 |
commit | dc7f42cffa54d687df7a182655648d368bed0160 (patch) | |
tree | ee8592d43c6d78ad25835638e94c113bba46c08e /eclass | |
parent | Stable ppc64, bug #423071 (diff) | |
download | historical-dc7f42cffa54d687df7a182655648d368bed0160.tar.gz historical-dc7f42cffa54d687df7a182655648d368bed0160.tar.bz2 historical-dc7f42cffa54d687df7a182655648d368bed0160.zip |
Use warnings, not errors for the load failures of SELinux - the failure is not fatal for a system
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/ChangeLog | 6 | ||||
-rw-r--r-- | eclass/selinux-policy-2.eclass | 34 |
2 files changed, 22 insertions, 18 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog index c919685006d2..6b0d636de680 100644 --- a/eclass/ChangeLog +++ b/eclass/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for eclass directory # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.354 2012/07/26 09:34:55 yngwin Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.355 2012/07/26 12:53:01 swift Exp $ + + 26 Jul 2012; <swift@gentoo.org> selinux-policy-2.eclass: + Use warnings for SELinux failures, not errors, since the failure is not fatal + for a system 26 Jul 2012; Ben de Groot <yngwin@gentoo.org> l10n.eclass: Remove ambiguous wording diff --git a/eclass/selinux-policy-2.eclass b/eclass/selinux-policy-2.eclass index ce5ecd95417e..a7306f30d07f 100644 --- a/eclass/selinux-policy-2.eclass +++ b/eclass/selinux-policy-2.eclass @@ -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.12 2012/05/26 14:25:02 swift Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/selinux-policy-2.eclass,v 1.13 2012/07/26 12:53:01 swift Exp $ # Eclass for installing SELinux policy, and optionally # reloading the reference-policy based modules. @@ -241,22 +241,22 @@ selinux-policy-2_pkg_postinst() { fi if [ $? -ne 0 ]; then - eerror "Failed to reload SELinux policies." - eerror "" - eerror "If this is *not* the last SELinux module package being installed," - eerror "then you can safely ignore this as the reloads will be retried" - eerror "with other, recent modules." - eerror "" - eerror "If it is the last SELinux module package being installed however," - eerror "then it is advised to look at the error above and take appropriate" - eerror "action since the new SELinux policies are not loaded until the" - eerror "command finished succesfully." - eerror "" - eerror "To reload, run the following command from within /usr/share/selinux/${i}:" - eerror " semodule -b base.pp -i \$(ls *.pp | grep -v base.pp)" - eerror "or" - eerror " semodule -b base.pp -i \$(ls *.pp | grep -v base.pp | grep -v unconfined.pp)" - eerror "depending on if you need the unconfined domain loaded as well or not." + ewarn "Failed to reload SELinux policies." + ewarn "" + ewarn "If this is *not* the last SELinux module package being installed," + ewarn "then you can safely ignore this as the reloads will be retried" + ewarn "with other, recent modules." + ewarn "" + ewarn "If it is the last SELinux module package being installed however," + ewarn "then it is advised to look at the error above and take appropriate" + ewarn "action since the new SELinux policies are not loaded until the" + ewarn "command finished succesfully." + ewarn "" + ewarn "To reload, run the following command from within /usr/share/selinux/${i}:" + ewarn " semodule -b base.pp -i \$(ls *.pp | grep -v base.pp)" + ewarn "or" + ewarn " semodule -b base.pp -i \$(ls *.pp | grep -v base.pp | grep -v unconfined.pp)" + ewarn "depending on if you need the unconfined domain loaded as well or not." else einfo "SELinux modules reloaded succesfully." fi |