Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
sandbox.h
Go to the documentation of this file.
1// SPDX-License-Identifier: 0BSD
2
4//
7//
8// Author: Lasse Collin
9//
11
12#if defined(HAVE_PLEDGE) || defined(HAVE_LINUX_LANDLOCK) \
13 || defined(HAVE_CAP_RIGHTS_LIMIT)
14# define ENABLE_SANDBOX 1
15#endif
16
17
21extern void sandbox_init(void);
22
23
25extern void sandbox_enable_read_only(void);
26
27
32extern void sandbox_allow_strict(void);
33
34
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.