aboutsummaryrefslogtreecommitdiff
path: root/src/common/sandbox.h
diff options
context:
space:
mode:
authorCristian Toader <cristian.matei.toader@gmail.com>2013-07-29 16:30:39 +0300
committerCristian Toader <cristian.matei.toader@gmail.com>2013-07-29 16:30:39 +0300
commit8022def6f05bf40e1c6e0fd15d77ed0ecf5c3406 (patch)
treef080ff487369b0a17d6c0e1a9b4c88560e7c379c /src/common/sandbox.h
parent6d5b0367f6e0035f99570b5bb76a75322ae9a85e (diff)
downloadtor-8022def6f05bf40e1c6e0fd15d77ed0ecf5c3406.tar.gz
tor-8022def6f05bf40e1c6e0fd15d77ed0ecf5c3406.zip
added openat parameter filter
Diffstat (limited to 'src/common/sandbox.h')
-rw-r--r--src/common/sandbox.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/sandbox.h b/src/common/sandbox.h
index 9acf8c4a97..104d832bc1 100644
--- a/src/common/sandbox.h
+++ b/src/common/sandbox.h
@@ -29,7 +29,9 @@
*/
#ifdef __linux__
+#ifndef __USE_GNU
#define __USE_GNU
+#endif
#include <sys/ucontext.h>
#define MAX_PARAM_LEN 64
@@ -80,7 +82,7 @@ typedef struct pfd_elem sandbox_cfg_t;
void sandbox_set_debugging_fd(int fd);
int tor_global_sandbox(void);
-const char* sandbox_intern_string(char *param);
+const char* sandbox_intern_string(const char *param);
sandbox_cfg_t * sandbox_cfg_new();
int sandbox_cfg_allow_open_filename(sandbox_cfg_t **cfg, char *file);