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;