aboutsummaryrefslogtreecommitdiff
path: root/src/common/sandbox.h
diff options
context:
space:
mode:
authorCristian Toader <cristian.matei.toader@gmail.com>2013-07-23 10:49:56 +0300
committerCristian Toader <cristian.matei.toader@gmail.com>2013-07-23 10:49:56 +0300
commit8b12170f23f4042610b3574b8edf3794fef245b4 (patch)
treed449048852b5875167d9bcb8f88f8950d99845f5 /src/common/sandbox.h
parent7cf1dbfd51f17773e93b509d954371886243a0eb (diff)
downloadtor-8b12170f23f4042610b3574b8edf3794fef245b4.tar
tor-8b12170f23f4042610b3574b8edf3794fef245b4.tar.gz
added support for numeric parameters, tested with rt_sigaction
Diffstat (limited to 'src/common/sandbox.h')
-rw-r--r--src/common/sandbox.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/common/sandbox.h b/src/common/sandbox.h
index bfb7a730f..de5699e34 100644
--- a/src/common/sandbox.h
+++ b/src/common/sandbox.h
@@ -34,9 +34,15 @@
#define MAX_PARAM_LEN 32
+#define PARAM_PTR 0
+#define PARAM_NUM 1
+
typedef struct {
int syscall;
- intptr_t param; // TODO: make this intptr_t to support multiple types
+
+ char ptype;
+ intptr_t param;
+
char prot;
} ParFilter;