aboutsummaryrefslogtreecommitdiff
path: root/src/common/sandbox.h
diff options
context:
space:
mode:
authorCristian Toader <cristian.matei.toader@gmail.com>2013-08-05 16:01:31 +0300
committerCristian Toader <cristian.matei.toader@gmail.com>2013-08-05 16:01:31 +0300
commita960e56c6818a2b1ae0173a0c6439a0c0f68d969 (patch)
tree214eb8bac67c99384a7ccb678fb491531c712c02 /src/common/sandbox.h
parent356b646976b80c0ca1d582227d625130e7e76755 (diff)
downloadtor-a960e56c6818a2b1ae0173a0c6439a0c0f68d969.tar.gz
tor-a960e56c6818a2b1ae0173a0c6439a0c0f68d969.zip
multi-configuration support using sandbox_t struct
Diffstat (limited to 'src/common/sandbox.h')
-rw-r--r--src/common/sandbox.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/common/sandbox.h b/src/common/sandbox.h
index 1d5c8236e1..2b265443f8 100644
--- a/src/common/sandbox.h
+++ b/src/common/sandbox.h
@@ -66,6 +66,15 @@ typedef struct pfd_elem sandbox_cfg_t;
typedef int (*sandbox_filter_func_t)(scmp_filter_ctx ctx,
sandbox_cfg_t *filter);
+
+typedef struct {
+ // function pointers associated with filter
+ sandbox_filter_func_t *filter_func;
+
+ // filter function pointer parameters
+ sandbox_cfg_t *filter_dynamic;
+} sandbox_t;
+
/**
* Linux 32 bit definitions
*/