summaryrefslogtreecommitdiffstats
path: root/ipa-server/selinux/Makefile
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2008-02-08 11:09:06 -0500
committerRob Crittenden <rcritten@redhat.com>2008-02-08 11:09:06 -0500
commit1aa8729644d8052e4e7ffec7051b4a9386720ecf (patch)
tree78cc09af5793bf33f3bdeac00981eea3734cb27d /ipa-server/selinux/Makefile
parenteef18e5c38010ebb8ba2cb77fa100df50dcd6106 (diff)
downloadfreeipa-1aa8729644d8052e4e7ffec7051b4a9386720ecf.tar.gz
freeipa-1aa8729644d8052e4e7ffec7051b4a9386720ecf.tar.xz
freeipa-1aa8729644d8052e4e7ffec7051b4a9386720ecf.zip
Initial SELinux policies for ipa_kpasswd and ipa_webgui
Diffstat (limited to 'ipa-server/selinux/Makefile')
-rw-r--r--ipa-server/selinux/Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/ipa-server/selinux/Makefile b/ipa-server/selinux/Makefile
new file mode 100644
index 000000000..9fb5bbe40
--- /dev/null
+++ b/ipa-server/selinux/Makefile
@@ -0,0 +1,26 @@
+SUBDIRS = ipa_webgui ipa_kpasswd
+POLICY_MAKEFILE = /usr/share/selinux/devel/Makefile
+POLICY_DIR = $(DESTDIR)/usr/share/selinux/targeted
+
+all:
+ if [ ! -e $(POLICY_MAKEFILE) ]; then echo "You need to install the SELinux development tools (selinux-policy-devel)" && exit 1; fi
+
+ @for subdir in $(SUBDIRS); do \
+ (cd $$subdir && $(MAKE) -f $(POLICY_MAKEFILE) $@) || exit 1; \
+ done
+
+clean:
+ @for subdir in $(SUBDIRS); do \
+ (cd $$subdir && $(MAKE) -f $(POLICY_MAKEFILE) $@) || exit 1; \
+ done
+
+maintainer-clean: clean
+
+distclean: clean
+
+install: all
+ install -m 644 ipa_webgui/ipa_webgui.pp $(POLICY_DIR)
+ install -m 644 ipa_kpasswd/ipa_kpasswd.pp $(POLICY_DIR)
+
+load:
+ /usr/sbin/semodule -i ipa_webgui/ipa_webgui.pp ipa_kpasswd/ipa_kpasswd.pp