28 #if defined(HAVE_SECCOMP_H) && defined(__linux__)
29 #define USE_LIBSECCOMP
32 struct sandbox_cfg_elem_t;
42 #include <sys/ucontext.h>
61 typedef struct smp_param_t {
80 struct sandbox_cfg_elem_t {
88 struct sandbox_cfg_elem_t *next;
92 typedef int (*sandbox_filter_func_t)(scmp_filter_ctx ctx,
98 sandbox_filter_func_t *filter_func;
106 #ifdef USE_LIBSECCOMP
108 bool sandbox_interned_string_is_missing(
const char *s);
110 #define sandbox_intern_string(s) (s)
111 #define sandbox_interned_string_is_missing(s) (false)
124 int sandbox_cfg_allow_chmod_filename(
sandbox_cfg_t **cfg,
char *file);
125 int sandbox_cfg_allow_chown_filename(
sandbox_cfg_t **cfg,
char *file);
128 int sandbox_cfg_allow_rename(
sandbox_cfg_t **cfg,
char *file1,
char *file2);
int sandbox_cfg_allow_open_filename(sandbox_cfg_t **cfg, char *file)
int sandbox_cfg_allow_stat_filename(sandbox_cfg_t **cfg, char *file)
struct sandbox_cfg_elem_t sandbox_cfg_t
int sandbox_init(sandbox_cfg_t *cfg)
int sandbox_is_active(void)
int sandbox_cfg_allow_opendir_dirname(sandbox_cfg_t **cfg, char *dir)
#define sandbox_intern_string(s)
sandbox_cfg_t * sandbox_cfg_new(void)
int sandbox_cfg_allow_openat_filename(sandbox_cfg_t **cfg, char *file)
Integer definitions used throughout Tor.