summaryrefslogtreecommitdiffstats
path: root/selinux/Makefile.am
diff options
context:
space:
mode:
authorBoris Ranto <branto@redhat.com>2015-05-15 15:18:05 +0200
committerBoris Ranto <branto@redhat.com>2015-08-05 15:21:41 +0200
commitc52eb995e0d9c3bbb6d0293f5dacaeb511f37f96 (patch)
tree706d6424153f7528d19bc96787ce467e8836d993 /selinux/Makefile.am
parentMerge pull request #5474 from kylinstorage/wip-sparse_read_bugfix (diff)
downloadceph-c52eb995e0d9c3bbb6d0293f5dacaeb511f37f96.tar.xz
ceph-c52eb995e0d9c3bbb6d0293f5dacaeb511f37f96.zip
Add initial SELinux support
This patch modifies the build system and spec file to provide a support for SELinux enforcing in an opt-in matter via ceph-selinux package. Signed-off-by: Boris Ranto <branto@redhat.com>
Diffstat (limited to 'selinux/Makefile.am')
-rw-r--r--selinux/Makefile.am22
1 files changed, 22 insertions, 0 deletions
diff --git a/selinux/Makefile.am b/selinux/Makefile.am
new file mode 100644
index 00000000000..dbfb63c81de
--- /dev/null
+++ b/selinux/Makefile.am
@@ -0,0 +1,22 @@
+EXTRA_DIST = \
+ ceph.te \
+ ceph.fc \
+ ceph.if
+
+SELINUXROOT = $(DESTDIR)$(datadir)/selinux
+
+ceph.pp: ceph.te ceph.fc ceph.if
+ $(MAKE) -f $(datadir)/selinux/devel/Makefile ceph.pp
+
+if ENABLE_SERVER
+if WITH_SELINUX
+all-local: ceph.pp
+
+install-exec-local:
+ $(INSTALL) -d $(SELINUXROOT)/packages
+ $(INSTALL) -m 644 ceph.pp $(SELINUXROOT)/packages/
+ $(INSTALL) -d $(SELINUXROOT)/devel/include/contrib
+ $(INSTALL) -m 644 ceph.if $(SELINUXROOT)/devel/include/contrib/
+
+endif
+endif