|
Tor 0.4.9.8
|
Header file for sandbox.c. More...
Go to the source code of this file.
Macros | |
| #define | SYS_SECCOMP 1 |
| #define | sandbox_intern_string(s) |
| #define | sandbox_interned_string_is_missing(s) |
Typedefs | |
| typedef struct sandbox_cfg_elem_t | sandbox_cfg_t |
Functions | |
| sandbox_cfg_t * | sandbox_cfg_new (void) |
| int | sandbox_cfg_allow_open_filename (sandbox_cfg_t **cfg, char *file) |
| int | sandbox_cfg_allow_chmod_filename (sandbox_cfg_t **cfg, char *file) |
| int | sandbox_cfg_allow_chown_filename (sandbox_cfg_t **cfg, char *file) |
| int | sandbox_cfg_allow_rename (sandbox_cfg_t **cfg, char *file1, char *file2) |
| int | sandbox_cfg_allow_openat_filename (sandbox_cfg_t **cfg, char *file) |
| int | sandbox_cfg_allow_opendir_dirname (sandbox_cfg_t **cfg, char *dir) |
| int | sandbox_cfg_allow_stat_filename (sandbox_cfg_t **cfg, char *file) |
| int | sandbox_init (sandbox_cfg_t *cfg) |
| int | sandbox_is_active (void) |
| #define sandbox_intern_string | ( | s | ) |
Linux definitions
Definition at line 113 of file sandbox.h.
Referenced by check_private_dir(), configure_nameservers(), connection_listener_new(), crypto_strongest_rand_fallback(), file_status(), storage_dir_clean_tmpfiles(), storage_dir_get_usage(), storage_dir_remove_file(), storage_dir_shrink(), tor_fopen_cloexec(), tor_listdir(), tor_open_cloexec(), tor_rename(), and tor_run_main().
| #define sandbox_interned_string_is_missing | ( | s | ) |
| #define SYS_SECCOMP 1 |
| typedef struct sandbox_cfg_elem_t sandbox_cfg_t |
| int sandbox_cfg_allow_chmod_filename | ( | sandbox_cfg_t ** | cfg, |
| char * | file ) |
| int sandbox_cfg_allow_chown_filename | ( | sandbox_cfg_t ** | cfg, |
| char * | file ) |
| int sandbox_cfg_allow_open_filename | ( | sandbox_cfg_t ** | cfg, |
| char * | file ) |
Function used to add a open allowed filename to a supplied configuration. The (char*) specifies the path to the allowed file; we take ownership of the pointer.
Definition at line 2322 of file sandbox.c.
Referenced by storage_dir_register_with_sandbox().
| int sandbox_cfg_allow_openat_filename | ( | sandbox_cfg_t ** | cfg, |
| char * | file ) |
| int sandbox_cfg_allow_opendir_dirname | ( | sandbox_cfg_t ** | cfg, |
| char * | dir ) |
| int sandbox_cfg_allow_rename | ( | sandbox_cfg_t ** | cfg, |
| char * | file1, | ||
| char * | file2 ) |
| int sandbox_cfg_allow_stat_filename | ( | sandbox_cfg_t ** | cfg, |
| char * | file ) |
Function used to add a stat/stat64 allowed filename to a configuration. The (char*) specifies the path to the allowed file; that pointer is stolen.
Definition at line 2343 of file sandbox.c.
Referenced by storage_dir_register_with_sandbox().
| sandbox_cfg_t * sandbox_cfg_new | ( | void | ) |
| int sandbox_init | ( | sandbox_cfg_t * | cfg | ) |
Function used to initialise a sandbox configuration.
Definition at line 2298 of file sandbox.c.
Referenced by tor_run_main().
| int sandbox_is_active | ( | void | ) |
Return true iff the sandbox is turned on.
Definition at line 2371 of file sandbox.c.
Referenced by dump_desc(), options_act(), options_check_transition_cb(), options_start_listener_transaction(), and routerparse_init().