/[gentoo-x86]/eclass/selinux-policy-2.eclass
Gentoo

Diff of /eclass/selinux-policy-2.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.12 Revision 1.13
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/selinux-policy-2.eclass,v 1.12 2012/05/26 14:25:02 swift Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/selinux-policy-2.eclass,v 1.13 2012/07/26 12:53:01 swift Exp $
4 4
5# Eclass for installing SELinux policy, and optionally 5# Eclass for installing SELinux policy, and optionally
6# reloading the reference-policy based modules. 6# reloading the reference-policy based modules.
7 7
8# @ECLASS: selinux-policy-2.eclass 8# @ECLASS: selinux-policy-2.eclass
239 else 239 else
240 semodule -s ${i} -b base.pp -i $(ls *.pp | grep -v base.pp | grep -v unconfined.pp); 240 semodule -s ${i} -b base.pp -i $(ls *.pp | grep -v base.pp | grep -v unconfined.pp);
241 fi 241 fi
242 if [ $? -ne 0 ]; 242 if [ $? -ne 0 ];
243 then 243 then
244 eerror "Failed to reload SELinux policies." 244 ewarn "Failed to reload SELinux policies."
245 eerror "" 245 ewarn ""
246 eerror "If this is *not* the last SELinux module package being installed," 246 ewarn "If this is *not* the last SELinux module package being installed,"
247 eerror "then you can safely ignore this as the reloads will be retried" 247 ewarn "then you can safely ignore this as the reloads will be retried"
248 eerror "with other, recent modules." 248 ewarn "with other, recent modules."
249 eerror "" 249 ewarn ""
250 eerror "If it is the last SELinux module package being installed however," 250 ewarn "If it is the last SELinux module package being installed however,"
251 eerror "then it is advised to look at the error above and take appropriate" 251 ewarn "then it is advised to look at the error above and take appropriate"
252 eerror "action since the new SELinux policies are not loaded until the" 252 ewarn "action since the new SELinux policies are not loaded until the"
253 eerror "command finished succesfully." 253 ewarn "command finished succesfully."
254 eerror "" 254 ewarn ""
255 eerror "To reload, run the following command from within /usr/share/selinux/${i}:" 255 ewarn "To reload, run the following command from within /usr/share/selinux/${i}:"
256 eerror " semodule -b base.pp -i \$(ls *.pp | grep -v base.pp)" 256 ewarn " semodule -b base.pp -i \$(ls *.pp | grep -v base.pp)"
257 eerror "or" 257 ewarn "or"
258 eerror " semodule -b base.pp -i \$(ls *.pp | grep -v base.pp | grep -v unconfined.pp)" 258 ewarn " semodule -b base.pp -i \$(ls *.pp | grep -v base.pp | grep -v unconfined.pp)"
259 eerror "depending on if you need the unconfined domain loaded as well or not." 259 ewarn "depending on if you need the unconfined domain loaded as well or not."
260 else 260 else
261 einfo "SELinux modules reloaded succesfully." 261 einfo "SELinux modules reloaded succesfully."
262 fi 262 fi
263 else 263 else
264 einfo "SELinux modules loaded succesfully." 264 einfo "SELinux modules loaded succesfully."

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.20