Sophie

Sophie

distrib > Scientific%20Linux > 5x > i386 > by-pkgid > b48279cb0c0bd921d55ece0f1f9a36d9 > scriptlet

selinux-policy-mls-2.4.6-351.el5.noarch.rpm

PREIN

/bin/sh

if [ -s /etc/selinux/config ]; then 
	. /etc/selinux/config; 
	FILE_CONTEXT=/etc/selinux/mls/contexts/files/file_contexts; 
	if [ "${SELINUXTYPE}" == mls -a -f ${FILE_CONTEXT} ]; then 
		cp -f ${FILE_CONTEXT} ${FILE_CONTEXT}.pre; 
	fi 
fi

POSTIN

/bin/sh

( cd /usr/share/selinux/mls; 
semodule -b base.pp -i java.pp -i pcscd.pp -i amtu.pp -i zosremote.pp -i sssd.pp -i mcelog.pp -i iscsi.pp  -s mls; 
);
rm -f /etc/selinux/mls/policy/policy.*.rpmnew
. /etc/selinux/config; 
FILE_CONTEXT=/etc/selinux/mls/contexts/files/file_contexts; 
selinuxenabled; 
if [ $? == 0  -a "${SELINUXTYPE}" == mls -a -f ${FILE_CONTEXT}.pre ]; then 
	fixfiles -C ${FILE_CONTEXT}.pre restore; 
	restorecon -R /var/log /var/run; 
	rm -f ${FILE_CONTEXT}.pre; 
fi;