Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
0b85673
)
Adjust vpp-selinux-policy postinstall
82/10782/3
author
Matthew Smith
<mgsmith@netgate.com>
Fri, 23 Feb 2018 03:12:11 +0000
(21:12 -0600)
committer
Damjan Marion
<dmarion.lists@gmail.com>
Wed, 28 Feb 2018 21:47:43 +0000
(21:47 +0000)
Only run semodule command on hosts where selinux
is enabled.
Change-Id: I7bcfc758e44bb0f41ec657ad395352ddb92766eb
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
extras/rpm/vpp.spec
patch
|
blob
|
history
diff --git
a/extras/rpm/vpp.spec
b/extras/rpm/vpp.spec
index
1793966
..
a23cc14
100644
(file)
--- 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