aboutsummaryrefslogtreecommitdiff
path: root/src/common/sandbox.h
diff options
context:
space:
mode:
authorCristian Toader <cristian.matei.toader@gmail.com>2013-07-30 21:23:30 +0300
committerCristian Toader <cristian.matei.toader@gmail.com>2013-07-30 21:23:30 +0300
commit442f256f251d1a7a0c29c4d1254dda668f887d0c (patch)
tree9eff0638b4afe98be5d983f502bb6df75173a3f2 /src/common/sandbox.h
parent5baea851892bcc2734c0e62e96b8d2d6e2626c51 (diff)
downloadtor-442f256f251d1a7a0c29c4d1254dda668f887d0c.tar
tor-442f256f251d1a7a0c29c4d1254dda668f887d0c.tar.gz
switched to a design using filters as function pointer arrays
Diffstat (limited to 'src/common/sandbox.h')
-rw-r--r--src/common/sandbox.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/sandbox.h b/src/common/sandbox.h
index dbf743e20..434413426 100644
--- a/src/common/sandbox.h
+++ b/src/common/sandbox.h
@@ -33,6 +33,7 @@
#define __USE_GNU
#endif
#include <sys/ucontext.h>
+#include <seccomp.h>
#define MAX_PARAM_LEN 64
@@ -62,6 +63,8 @@ struct pfd_elem {
};
typedef struct pfd_elem sandbox_cfg_t;
+typedef int (*sandbox_filter_func_t)(scmp_filter_ctx ctx);
+
/**
* Linux 32 bit definitions
*/