From: Matthew Smith Date: Fri, 23 Feb 2018 03:12:11 +0000 (-0600) Subject: Adjust vpp-selinux-policy postinstall X-Git-Tag: v18.04-rc1~236 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F82%2F10782%2F3;p=vpp.git Adjust vpp-selinux-policy postinstall Only run semodule command on hosts where selinux is enabled. Change-Id: I7bcfc758e44bb0f41ec657ad395352ddb92766eb Signed-off-by: Matthew Smith --- diff --git a/extras/rpm/vpp.spec b/extras/rpm/vpp.spec index 1793966b0c3..a23cc1482e9 100644 --- a/extras/rpm/vpp.spec +++ b/extras/rpm/vpp.spec @@ -325,8 +325,8 @@ fi %post selinux-policy %_format MODULES %{_datadir}/selinux/packages/$x.pp -%{_sbindir}/semodule -n -X 400 -s %{selinuxtype} -i $MODULES if %{_sbindir}/selinuxenabled ; then + %{_sbindir}/semodule -n -X 400 -s %{selinuxtype} -i $MODULES %{_sbindir}/load_policy %relabel_files fi