💾 Archived View for gemini.rmf-dev.com › repo › Vaati › Vgmi › files › 1dca6650a1d542b4fa8539f045a52… captured on 2022-07-16 at 17:12:38. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

0 /* See LICENSE file for copyright and license details. */

1 #ifndef _CAPSICUM_H_

2 #define _CAPSICUM_H_

3 int sandbox_init();

4 int sandbox_close();

5 #ifdef __FreeBSD__

6

7 extern int config_folder;

8 #include <netdb.h>

9 #include <fcntl.h>

10 int sandbox_getaddrinfo(const char *hostname, const char *servname,

11 const struct addrinfo *hints, struct addrinfo **res);

12 int sandbox_connect(int s, const struct sockaddr *name, socklen_t namelen);

13 int make_readonly(FILE* f);

14 int makefd_readonly(int fd);

15 int make_writeonly(FILE* f);

16 int makefd_writeonly(int fd);

17 int makefd_writeseek(int fd);

18 #define getaddrinfo(a, b, c, d) sandbox_getaddrinfo(a, b, c, d)

19 #define connect(a, b, c) sandbox_connect(a, b, c)

20

21 #endif

22 #include <signal.h>

23 void sigsys_handler(int signo, siginfo_t *info, void *unused);

24 #endif

25