Skip to contentSkip to conversation

Make building sandbox conditional on presence of cap-ng.h

PATCH New Joshua Brindle 1 participant 1 message Mar 29, 2010 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Make building sandbox conditional on presence of cap-ng.h

Sandbox requires cap-ng so I added a conditional build the same way we have one for inotify.h. It would be nice to have a better dependency system some day.

This should be applied on top of the Sandbox patch by Dan Walsh <[email protected]>

---
 policycoreutils/Makefile |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
policycoreutils/Makefile +7 -1
index c7a590e..c68194a 100644
@@ -1,4 +1,4 @@
-SUBDIRS = setfiles semanage load_policy newrole run_init secon audit2allow audit2why sandbox scripts sestatus semodule_package semodule semodule_link semodule_expand semodule_deps setsebool po
+SUBDIRS = setfiles semanage load_policy newrole run_init secon audit2allow audit2why scripts sestatus semodule_package semodule semodule_link semodule_expand semodule_deps setsebool po
 
 INOTIFYH = $(shell ls /usr/include/sys/inotify.h 2>/dev/null)
 
@@ -6,6 +6,12 @@ ifeq (${INOTIFYH}, /usr/include/sys/inotify.h)
 	SUBDIRS += restorecond
 endif
 
+CAPNGH = $(shell ls /usr/include/cap-ng.h 2>/dev/null)
+
+ifeq (${CAPNGH}, /usr/include/cap-ng.h)
+	SUBDIRS += sandbox
+endif
+
 all install relabel clean indent:
 	@for subdir in $(SUBDIRS); do \
 		(cd $$subdir && $(MAKE) $@) || exit 1; \
Signature · 7 lines
1.7.0.1


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.