diff options
author | Cristian Toader <cristian.matei.toader@gmail.com> | 2013-07-25 13:25:20 +0300 |
---|---|---|
committer | Cristian Toader <cristian.matei.toader@gmail.com> | 2013-07-25 13:25:20 +0300 |
commit | 3dfe1c06396665d4008ba2ea54a0ad23d445df2b (patch) | |
tree | 5ee3b79fd0c697dd8064cd483f5521d2fd516192 /src/common/sandbox.h | |
parent | abe082e7d03ad81d7f28d3f5c0070214aa525bfb (diff) | |
download | tor-3dfe1c06396665d4008ba2ea54a0ad23d445df2b.tar.gz tor-3dfe1c06396665d4008ba2ea54a0ad23d445df2b.zip |
initia stages of runtime dynamic filters
Diffstat (limited to 'src/common/sandbox.h')
-rw-r--r-- | src/common/sandbox.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/common/sandbox.h b/src/common/sandbox.h index dc765c758e..2cb8ab8806 100644 --- a/src/common/sandbox.h +++ b/src/common/sandbox.h @@ -45,7 +45,7 @@ typedef struct { intptr_t param; char prot; -} ParFilterStatic; +} sandbox_static_cfg_t; struct pfd_elem { int syscall; @@ -58,7 +58,7 @@ struct pfd_elem { struct pfd_elem *next; }; -typedef struct pfd_elem ParFilterDynamic; +typedef struct pfd_elem sandbox_cfg_t; /** * Linux 32 bit definitions @@ -81,8 +81,7 @@ typedef struct pfd_elem ParFilterDynamic; void sandbox_set_debugging_fd(int fd); int tor_global_sandbox(void); char* get_prot_param(char *param); -int add_dynamic_param_filter(char *syscall, char ptype, char pindex, - intptr_t val); +int sandbox_cfg_allow_open_filename(sandbox_cfg_t **cfg, char *file); #endif /* SANDBOX_H_ */ |