From f542fd5ca7a16165d80c5f968777e7a4bf71e6f1 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Tue, 12 Jul 2016 05:18:38 +0000 Subject: Add support for Mac OS X's sandbox_init(3) sandbox functionality, which is marked as DEPRECATED in OS X after 2011 or so, but has not been removed and has no replacement. ok schwarze@ --- test-sandbox_init.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test-sandbox_init.c (limited to 'test-sandbox_init.c') diff --git a/test-sandbox_init.c b/test-sandbox_init.c new file mode 100644 index 00000000..a4902ee6 --- /dev/null +++ b/test-sandbox_init.c @@ -0,0 +1,13 @@ +#include + +int +main(void) +{ + char *ep; + int rc; + + rc = sandbox_init(kSBXProfileNoInternet, SANDBOX_NAMED, &ep); + if (-1 == rc) + sandbox_free_error(ep); + return(-1 == rc); +} -- cgit v1.2.3-56-ge451