aboutsummaryrefslogtreecommitdiff
path: root/src/common/sandbox.h
diff options
context:
space:
mode:
authorCristian Toader <cristian.matei.toader@gmail.com>2013-08-19 13:56:50 +0300
committerCristian Toader <cristian.matei.toader@gmail.com>2013-08-19 13:56:50 +0300
commit36aeca0ecf5f6e724a4d5da1795c9c9d76410290 (patch)
tree71c027df5f5a4ab48c2b5bed43a19af98108ae68 /src/common/sandbox.h
parenta9910d89f170933a7730798c98ebbb1d743a1c46 (diff)
downloadtor-36aeca0ecf5f6e724a4d5da1795c9c9d76410290.tar.gz
tor-36aeca0ecf5f6e724a4d5da1795c9c9d76410290.zip
fix for getaddrinfo open syscall
Diffstat (limited to 'src/common/sandbox.h')
-rw-r--r--src/common/sandbox.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/sandbox.h b/src/common/sandbox.h
index ad31e54100..6cb827e268 100644
--- a/src/common/sandbox.h
+++ b/src/common/sandbox.h
@@ -34,6 +34,7 @@
#endif
#include <sys/ucontext.h>
#include <seccomp.h>
+#include <netdb.h>
/** Security measure for filter string parameter lengths*/
#define MAX_PARAM_LEN 64
@@ -91,6 +92,9 @@ typedef struct {
#endif // __linux__
+/** Replacement for getaddrinfo(), using pre-recorded results. */
+int sandbox_getaddrinfo(const char *name, struct addrinfo **res);
+
/** Use <b>fd</b> to log non-survivable sandbox violations. */
void sandbox_set_debugging_fd(int fd);