diff options
author | Cristian Toader <cristian.matei.toader@gmail.com> | 2013-07-23 10:49:56 +0300 |
---|---|---|
committer | Cristian Toader <cristian.matei.toader@gmail.com> | 2013-07-23 10:49:56 +0300 |
commit | 8b12170f23f4042610b3574b8edf3794fef245b4 (patch) | |
tree | d449048852b5875167d9bcb8f88f8950d99845f5 /src/common/sandbox.h | |
parent | 7cf1dbfd51f17773e93b509d954371886243a0eb (diff) | |
download | tor-8b12170f23f4042610b3574b8edf3794fef245b4.tar.gz tor-8b12170f23f4042610b3574b8edf3794fef245b4.zip |
added support for numeric parameters, tested with rt_sigaction
Diffstat (limited to 'src/common/sandbox.h')
-rw-r--r-- | src/common/sandbox.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/common/sandbox.h b/src/common/sandbox.h index bfb7a730fe..de5699e342 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; |