aboutsummaryrefslogtreecommitdiff
path: root/src/common/sandbox.h
diff options
context:
space:
mode:
authorCristian Toader <cristian.matei.toader@gmail.com>2013-08-05 15:40:23 +0300
committerCristian Toader <cristian.matei.toader@gmail.com>2013-08-05 15:40:23 +0300
commit356b646976b80c0ca1d582227d625130e7e76755 (patch)
tree901d643092bec844fb58c640d151a7df73aea4a1 /src/common/sandbox.h
parentd897690fc7f6f6b5b3d37da2e3e2b05f38222f06 (diff)
downloadtor-356b646976b80c0ca1d582227d625130e7e76755.tar
tor-356b646976b80c0ca1d582227d625130e7e76755.tar.gz
added execve and multi-configuration support
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 434413426..1d5c8236e 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_ */