Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > contrib-release > by-pkgid > a4f3ecd1ccc0cfdf15aeebe5659808b7 > scriptlet

selinux-policy-mls-3.2.5-1mdv2008.1.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 openct.pp -i amtu.pp  -s mls; 
);
rm -f /etc/selinux/mls/policy/policy.*.rpmnew;
if [ $1 != 1 ]; then

. /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 2> /dev/null; 
        rm -f ${FILE_CONTEXT}.pre; 
fi;fi
exit 0