Changes to update Tomato RAF.
[tomato.git] / release / src / router / dnscrypt / src / proxy / sandboxes.c
blob713612e6eaf424212420265da939d8f6e0329cad
2 #include <config.h>
3 #include <sys/types.h>
4 #include <sys/time.h>
6 #ifdef HAVE_SANDBOX_H
7 # pragma GCC diagnostic ignored "-Wdeprecated-declarations"
8 # include <sandbox.h>
9 #endif
11 #include "sandboxes.h"
13 int
14 sandboxes_app(void)
16 return 0;
19 int
20 sandboxes_pidproc(void)
22 #ifdef HAVE_SANDBOX_INIT
23 char *errmsg;
25 if (sandbox_init != NULL &&
26 sandbox_init(kSBXProfileNoNetwork, SANDBOX_NAMED, &errmsg) != 0) {
27 return -1;
29 #endif
30 return 0;