]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
multi-configuration support using sandbox_t struct
authorCristian Toader <cristian.matei.toader@gmail.com>
Mon, 5 Aug 2013 13:01:31 +0000 (16:01 +0300)
committerCristian Toader <cristian.matei.toader@gmail.com>
Mon, 5 Aug 2013 13:01:31 +0000 (16:01 +0300)
src/common/sandbox.h

index 1d5c8236e1dd11b9b321c04ec15caba866caf014..2b265443f832ee03554e2e41009c66267c52b140 100644 (file)
@@ -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
  */