summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2010-07-21 17:29:08 +0000
committerAlan Conway <aconway@apache.org>2010-07-21 17:29:08 +0000
commit8d3df58e7033a6d870b8566b393625155b10392e (patch)
tree0ecb0a029660c648e52ebcdc6daf07ba2e1957e8 /cpp
parentb88ea955f6d293c8471de57f80e3dbe86d8f354a (diff)
downloadqpid-python-8d3df58e7033a6d870b8566b393625155b10392e.tar.gz
Added makefile to build & install selinux policy modules.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@966323 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r--cpp/etc/selinux/.gitignore7
-rw-r--r--cpp/etc/selinux/Makefile14
2 files changed, 21 insertions, 0 deletions
diff --git a/cpp/etc/selinux/.gitignore b/cpp/etc/selinux/.gitignore
new file mode 100644
index 0000000000..9e81f21cbd
--- /dev/null
+++ b/cpp/etc/selinux/.gitignore
@@ -0,0 +1,7 @@
+/qpidd.fc
+/qpidd.if
+/qpidd.pp
+/qpiddevel.fc
+/qpiddevel.if
+/qpiddevel.pp
+/tmp
diff --git a/cpp/etc/selinux/Makefile b/cpp/etc/selinux/Makefile
new file mode 100644
index 0000000000..440879d1ed
--- /dev/null
+++ b/cpp/etc/selinux/Makefile
@@ -0,0 +1,14 @@
+# Makefile to build and install the selinux policies in this directory.
+# Needs to be run as root.
+
+POLICIES = qpidd.pp qpiddevel.pp
+SOURCES = $(POLICIES:.pp=.te)
+
+install: $(POLICIES)
+ for p in $(POLICIES); do /usr/sbin/semodule -i $$p; done
+
+$(POLICIES): $(SOURCES)
+ make -f /usr/share/selinux/devel/Makefile
+
+clean:
+ rm -rf *~ *.pp *.fc *.if tmp