mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-01 03:53:33 +00:00
5a132f9652
It's now possible to pass the `-S` or `-SS` flags to sandbox redbean worker proecsses after they've been forked. The first `-S` flag is intended to be a permissive builtin policy that limits system calls to only that which the various parts of redbean serving need. The second `-SS` flag is intended to be more restrictive, preventing things like the Lua extensions you download off the web from using the HTTP client or sockets APIs. In upcoming changes you'll be able to implement your own Berkeley Packet Filter sandbox programs and load them via Lua.
16 lines
456 B
C
16 lines
456 B
C
#ifndef COSMOPOLITAN_LIBC_SOCK_SYSLOG_H_
|
|
#define COSMOPOLITAN_LIBC_SOCK_SYSLOG_H_
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
COSMOPOLITAN_C_START_
|
|
|
|
#define LOG_PRI(p) (LOG_PRIMASK & (p))
|
|
|
|
int setlogmask(int);
|
|
void openlog(const char *, int, int);
|
|
void syslog(int, const char *, ...);
|
|
void closelog(void);
|
|
void vsyslog(int, const char *, va_list);
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
#endif /* COSMOPOLITAN_LIBC_SOCK_SYSLOG_H_ */
|