12#if defined(HAVE_PLEDGE) || defined(HAVE_LINUX_LANDLOCK) \
13 || defined(HAVE_CAP_RIGHTS_LIMIT)
14# define ENABLE_SANDBOX 1
43 int src_fd,
int pipe_event_fd,
int pipe_write_fd);
void sandbox_allow_strict(void)
Tell sandboxing code that strict sandboxing can be used.
void sandbox_init(void)
Enables early sandboxing that can always be enabled.
void sandbox_enable_strict_if_allowed(int src_fd, int pipe_event_fd, int pipe_write_fd)
Enable sandboxing that allows reading from one file.
void sandbox_enable_read_only(void)
Enable sandboxing that only allows opening files for reading.