aboutsummaryrefslogtreecommitdiff
path: root/src/common/sandbox.h
diff options
context:
space:
mode:
authorCristian Toader <cristian.matei.toader@gmail.com>2013-07-24 17:06:06 +0300
committerCristian Toader <cristian.matei.toader@gmail.com>2013-07-24 17:06:06 +0300
commit962d814e52beb8d3ca8c73f3ab48d8566778dcc5 (patch)
treec0bc5ef5567eeddd851ac630b579823178b4e34e /src/common/sandbox.h
parente1410f20d749e3e76a28b7db0e99f51b863100ef (diff)
downloadtor-962d814e52beb8d3ca8c73f3ab48d8566778dcc5.tar
tor-962d814e52beb8d3ca8c73f3ab48d8566778dcc5.tar.gz
dynamic parameter filter (prototype, not tested)
Diffstat (limited to 'src/common/sandbox.h')
-rw-r--r--src/common/sandbox.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/common/sandbox.h b/src/common/sandbox.h
index b80c19808..b75161d93 100644
--- a/src/common/sandbox.h
+++ b/src/common/sandbox.h
@@ -45,7 +45,20 @@ typedef struct {
intptr_t param;
char prot;
-} ParFilter;
+} ParFilterStatic;
+
+struct pfd_elem {
+ int syscall;
+
+ char ptype;
+ char pindex;
+ intptr_t param;
+
+ char prot;
+
+ struct pfd_elem *next;
+};
+typedef struct pfd_elem ParFilterDynamic;
/**
* Linux 32 bit definitions