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
This commit is contained in:
Lukas Vrabec 2018-03-25 00:55:02 +01:00
parent 597a71b217
commit 67396b3121
No known key found for this signature in database
GPG Key ID: 47201AC42F29CE06

View File

@ -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 \