summaryrefslogtreecommitdiff
path: root/src/common/sandbox.h
diff options
context:
space:
mode:
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);