diff options
author | Cristian Toader <cristian.matei.toader@gmail.com> | 2013-08-12 21:14:43 +0300 |
---|---|---|
committer | Cristian Toader <cristian.matei.toader@gmail.com> | 2013-08-12 21:14:43 +0300 |
commit | 8a85a48b9d0ed2b298bcc26dfeb96fa7e31c05c4 (patch) | |
tree | 369ea3730d5b4a00ec81cf60486caebc7e59f2fe /src/common/sandbox.h | |
parent | 44a4464cf6d4dac88c46b8ffdb6ad002d03ade62 (diff) | |
download | tor-8a85a48b9d0ed2b298bcc26dfeb96fa7e31c05c4.tar.gz tor-8a85a48b9d0ed2b298bcc26dfeb96fa7e31c05c4.zip |
attempt to add stat64 filename filters; failed due to getaddrinfo..
Diffstat (limited to 'src/common/sandbox.h')
-rw-r--r-- | src/common/sandbox.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/sandbox.h b/src/common/sandbox.h index 33668d964f..e928591602 100644 --- a/src/common/sandbox.h +++ b/src/common/sandbox.h @@ -9,6 +9,8 @@ * \brief Header file for sandbox.c. **/ +// TODO: thinking of only having allow_file for multiple syscalls + #ifndef SANDBOX_H_ #define SANDBOX_H_ @@ -110,6 +112,11 @@ int sandbox_cfg_allow_openat_filename_array(sandbox_cfg_t **cfg, int num, ...); int sandbox_cfg_allow_execve(sandbox_cfg_t **cfg, char *com); int sandbox_cfg_allow_execve_array(sandbox_cfg_t **cfg, int num, ...); +int sandbox_cfg_allow_stat64_filename(sandbox_cfg_t **cfg, char *file, + char fr); +int sandbox_cfg_allow_stat64_filename_array(sandbox_cfg_t **cfg, + int num, ...); + int sandbox_init(sandbox_cfg_t* cfg); #endif /* SANDBOX_H_ */ |