diff options
author | Cristian Toader <cristian.matei.toader@gmail.com> | 2013-07-30 21:23:30 +0300 |
---|---|---|
committer | Cristian Toader <cristian.matei.toader@gmail.com> | 2013-07-30 21:23:30 +0300 |
commit | 442f256f251d1a7a0c29c4d1254dda668f887d0c (patch) | |
tree | 9eff0638b4afe98be5d983f502bb6df75173a3f2 /src/common/sandbox.h | |
parent | 5baea851892bcc2734c0e62e96b8d2d6e2626c51 (diff) | |
download | tor-442f256f251d1a7a0c29c4d1254dda668f887d0c.tar.gz tor-442f256f251d1a7a0c29c4d1254dda668f887d0c.zip |
switched to a design using filters as function pointer arrays
Diffstat (limited to 'src/common/sandbox.h')
-rw-r--r-- | src/common/sandbox.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/sandbox.h b/src/common/sandbox.h index dbf743e206..4344134264 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 */ |