https://bugzilla.redhat.com/show_bug.cgi?id=2097925
--- Comment #4 from Rob Crittenden <rcritten(a)redhat.com> ---
There are SELinux macros to simply the pre/post scripts. I'm not sure if you're
future-proofing by support multiple variants but generally this is just
targeted. I'm assuming single value below.
This is merely a suggestion.
%pre selinux
%selinux_relabel_pre -s %{selinuxvariants}
%post selinux
semodule -d cepces &> /dev/null || true;
%selinux_modules_install -s %{selinuxvariants}
%{_datadir}/selinux/packages/%{selinuxvariants}/%{modulename}.pp.bz2
%postun selinux
if [ $1 -eq 0 ]; then
%selinux_modules_uninstall -s %{selinuxvariants} %{modulename}
semodule -e cepces &> /dev/null || true;
fi
%posttrans selinux
%selinux_relabel_post -s %{selinuxvariants}
--
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
https://bugzilla.redhat.com/show_bug.cgi?id=2097925