* [PATCH] Make building sandbox conditional on presence of cap-ng.h
@ 2010-03-29 17:08 Joshua Brindle
0 siblings, 0 replies; only message in thread
From: Joshua Brindle @ 2010-03-29 17:08 UTC (permalink / raw)
To: SELinux List; +Cc: Dan Walsh, Joshua Brindle
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 <dwalsh@redhat.com>
Signed-off-by: Joshua Brindle <jbrindle@tresys.com>
---
policycoreutils/Makefile | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/policycoreutils/Makefile b/policycoreutils/Makefile
index c7a590e..c68194a 100644
--- a/policycoreutils/Makefile
+++ b/policycoreutils/Makefile
@@ -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; \
--
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 majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-03-29 17:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-29 17:08 [PATCH] Make building sandbox conditional on presence of cap-ng.h Joshua Brindle
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.