repo.or.cz
/
tomato.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Changes to update Tomato RAF.
[tomato.git]
/
release
/
src
/
router
/
dnscrypt
/
src
/
proxy
/
sandboxes.c
blob
713612e6eaf424212420265da939d8f6e0329cad
1
2
#include <config.h>
3
#include <sys/types.h>
4
#include <sys/time.h>
5
6
#ifdef HAVE_SANDBOX_H
7
# pragma GCC diagnostic ignored
"-Wdeprecated-declarations"
8
# include <sandbox.h>
9
#endif
10
11
#include
"sandboxes.h"
12
13
int
14
sandboxes_app
(
void
)
15
{
16
return
0
;
17
}
18
19
int
20
sandboxes_pidproc
(
void
)
21
{
22
#ifdef HAVE_SANDBOX_INIT
23
char
*
errmsg
;
24
25
if
(
sandbox_init
!=
NULL
&&
26
sandbox_init
(
kSBXProfileNoNetwork
,
SANDBOX_NAMED
, &
errmsg
) !=
0
) {
27
return
-
1
;
28
}
29
#endif
30
return
0
;
31
}