diff options
author | Cristian Toader <cristian.matei.toader@gmail.com> | 2013-08-05 15:40:23 +0300 |
---|---|---|
committer | Cristian Toader <cristian.matei.toader@gmail.com> | 2013-08-05 15:40:23 +0300 |
commit | 356b646976b80c0ca1d582227d625130e7e76755 (patch) | |
tree | 901d643092bec844fb58c640d151a7df73aea4a1 /src/common/sandbox.h | |
parent | d897690fc7f6f6b5b3d37da2e3e2b05f38222f06 (diff) | |
download | tor-356b646976b80c0ca1d582227d625130e7e76755.tar.gz tor-356b646976b80c0ca1d582227d625130e7e76755.zip |
added execve and multi-configuration support
Diffstat (limited to 'src/common/sandbox.h')
-rw-r--r-- | src/common/sandbox.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/sandbox.h b/src/common/sandbox.h index 4344134264..1d5c8236e1 100644 --- a/src/common/sandbox.h +++ b/src/common/sandbox.h @@ -63,7 +63,8 @@ struct pfd_elem { }; typedef struct pfd_elem sandbox_cfg_t; -typedef int (*sandbox_filter_func_t)(scmp_filter_ctx ctx); +typedef int (*sandbox_filter_func_t)(scmp_filter_ctx ctx, + sandbox_cfg_t *filter); /** * Linux 32 bit definitions @@ -90,6 +91,7 @@ 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); int sandbox_cfg_allow_openat_filename(sandbox_cfg_t **cfg, char *file); +int sandbox_cfg_allow_execve(sandbox_cfg_t **cfg, char *com); int sandbox_init(sandbox_cfg_t* cfg); #endif /* SANDBOX_H_ */ |