Pārlūkot izejas kodu

multi-configuration support using sandbox_t struct

Cristian Toader 12 gadi atpakaļ
vecāks
revīzija
a960e56c68
1 mainītis faili ar 9 papildinājumiem un 0 dzēšanām
  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
  */