From 173d64db83b987ce8b0981c4adf7c056d686f926 Mon Sep 17 00:00:00 2001 From: Lukas Vrabec Date: Mar 24 2018 23:55:02 +0000 Subject: In Fedora 28, ganesha SELinux module is removed, for proper upgrade this modules needs to be removed before SELinux policy for F28 is installed. Resolves: rhbz#1559174 --- diff --git a/selinux-policy.spec b/selinux-policy.spec index 5ade5f0..9a6c689 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 \