summaryrefslogtreecommitdiff
path: root/selinux
diff options
context:
space:
mode:
authorAaron Conole <aconole@redhat.com>2018-02-19 10:14:22 -0500
committerAnsis Atteka <aatteka@ovn.org>2018-02-23 10:13:29 -0800
commitee29e9feb235136f0055c124d87bd9a68bf8e71a (patch)
tree56393d3e782ce5fef0c9b99d114671201137fead /selinux
parenteb84ccc3e8613c35dc1c637ea1b357eb4eb7d25f (diff)
downloadopenvswitch-ee29e9feb235136f0055c124d87bd9a68bf8e71a.tar.gz
selinux: add a new target to build the policy
The selinux policy currently builds manually, as a process that either the user or distribution maintainer undertakes. That process consists of: 1. Convert the intermediary files into their file form through 'make' statements at the top level. 2. Change to the selinux directory and issue the selinux "make -f" directive. This commit introduces a new target 'selinux-policy' which builds the openvswitch-custom policy files. Signed-off-by: Aaron Conole <aconole@redhat.com> Acked-by: Ansis Atteka <aatteka@ovn.org>
Diffstat (limited to 'selinux')
-rw-r--r--selinux/automake.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/selinux/automake.mk b/selinux/automake.mk
index e8871aa97..48853cdc0 100644
--- a/selinux/automake.mk
+++ b/selinux/automake.mk
@@ -7,3 +7,8 @@
EXTRA_DIST += \
selinux/openvswitch-custom.te.in
+
+PHONY: selinux-policy
+
+selinux-policy: selinux/openvswitch-custom.te
+ $(MAKE) -C selinux/ -f /usr/share/selinux/devel/Makefile