浏览代码

multi-configuration support using sandbox_t struct

Cristian Toader 12 年之前
父节点
当前提交
a960e56c68
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      src/common/sandbox.h

+ 9 - 0
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
  */