/[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.16 Revision 1.17
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 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.16 2013/01/26 15:01:52 swift Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/selinux-policy-2.eclass,v 1.17 2013/03/09 12:07:50 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 for i in ${MODS}; do 239 for i in ${MODS}; do
240 COMMAND="-i ${i}.pp ${COMMAND}" 240 COMMAND="-i ${i}.pp ${COMMAND}"
241 done 241 done
242 242
243 for i in ${POLICY_TYPES}; do 243 for i in ${POLICY_TYPES}; do
244 if [ "${i}" == "strict" ] && [ "${MODS}" = "unconfined" ];
245 then
246 einfo "Ignoring loading of unconfined module in strict module store.";
247 continue;
248 fi
244 einfo "Inserting the following modules into the $i module store: ${MODS}" 249 einfo "Inserting the following modules into the $i module store: ${MODS}"
245 250
246 cd /usr/share/selinux/${i} || die "Could not enter /usr/share/selinux/${i}" 251 cd /usr/share/selinux/${i} || die "Could not enter /usr/share/selinux/${i}"
247 semodule -s ${i} ${COMMAND} 252 semodule -s ${i} ${COMMAND}
248 if [ $? -ne 0 ]; 253 if [ $? -ne 0 ];

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

  ViewVC Help
Powered by ViewVC 1.1.20