[ovs-dev] [PATCH 1/3] rhel: make the selinux policy intermediate

Aaron Conole aconole at redhat.com
Wed Aug 16 20:04:50 UTC 2017


This will be used by an upcoming commit to have @begin_ and @end_ dpdk
blocks to keep dpdk specific policy decisions only active when dpdk is
used.

Signed-off-by: Aaron Conole <aconole at redhat.com>
Tested-by: Jean Hsiao <jhsiao at redhat.com>
---
 rhel/openvswitch-fedora.spec.in                             | 1 +
 selinux/automake.mk                                         | 2 +-
 selinux/{openvswitch-custom.te => openvswitch-custom.te.in} | 0
 3 files changed, 2 insertions(+), 1 deletion(-)
 rename selinux/{openvswitch-custom.te => openvswitch-custom.te.in} (100%)

diff --git a/rhel/openvswitch-fedora.spec.in b/rhel/openvswitch-fedora.spec.in
index 59e8ff8..dd79fa9 100644
--- a/rhel/openvswitch-fedora.spec.in
+++ b/rhel/openvswitch-fedora.spec.in
@@ -239,6 +239,7 @@ Docker network plugins for OVN.
 	> rhel/usr_lib_systemd_system_ovs-vswitchd.service
 
 make %{?_smp_mflags}
+make selinux/openvswitch-custom.te
 cd selinux
 make -f %{_datadir}/selinux/devel/Makefile
 
diff --git a/selinux/automake.mk b/selinux/automake.mk
index 1088f36..e8871aa 100644
--- a/selinux/automake.mk
+++ b/selinux/automake.mk
@@ -6,4 +6,4 @@
 # without warranty of any kind.
 
 EXTRA_DIST += \
-        selinux/openvswitch-custom.te
+        selinux/openvswitch-custom.te.in
diff --git a/selinux/openvswitch-custom.te b/selinux/openvswitch-custom.te.in
similarity index 100%
rename from selinux/openvswitch-custom.te
rename to selinux/openvswitch-custom.te.in
-- 
2.9.4



More information about the dev mailing list