[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] multi-configuration support using sandbox_t struct



commit a960e56c6818a2b1ae0173a0c6439a0c0f68d969
Author: Cristian Toader <cristian.matei.toader@xxxxxxxxx>
Date:   Mon Aug 5 16:01:31 2013 +0300

    multi-configuration support using sandbox_t struct
---
 src/common/sandbox.h |    9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/common/sandbox.h b/src/common/sandbox.h
index 1d5c823..2b26544 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
  */



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits