From 3dfe1c06396665d4008ba2ea54a0ad23d445df2b Mon Sep 17 00:00:00 2001 From: Cristian Toader Date: Thu, 25 Jul 2013 13:25:20 +0300 Subject: initia stages of runtime dynamic filters --- src/common/sandbox.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/common/sandbox.h') 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_ */ -- cgit v1.2.3-54-g00ecf