diff --git a/selinux-policy.spec b/selinux-policy.spec index 9f19df3..7a36777 100644 --- a/selinux-policy.spec +++ b/selinux-policy.spec @@ -285,6 +285,9 @@ fi; \ %define preInstall() \ if [ $1 -ne 1 ] && [ -s /etc/selinux/config ]; then \ + if [ -d %{_sharedstatedir}/selinux/%1/active/modules/100/ganesha ]; then \ + %{_sbindir}/semodule -n -d ganesha; \ + fi; \ . %{_sysconfdir}/selinux/config; \ FILE_CONTEXT=%{_sysconfdir}/selinux/%1/contexts/files/file_contexts; \ if [ "${SELINUXTYPE}" = %1 -a -f ${FILE_CONTEXT} ]; then \