2022-10-02 14:09:25 +08:00
|
|
|
#ifndef WOJ_SANDBOX_SANDBOX_H
|
|
|
|
#define WOJ_SANDBOX_SANDBOX_H
|
|
|
|
|
|
|
|
#include <seccomp.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
// Configuration Environment Variables
|
|
|
|
#define SANDBOX_TEMPLATE "SANDBOX_TEMPLATE"
|
|
|
|
#define SANDBOX_ACTION "SANDBOX_ACTION"
|
|
|
|
|
|
|
|
void setup_seccomp(void);
|
2022-10-09 00:06:07 +08:00
|
|
|
void add_syscall_name(const char *syscall_name, scmp_filter_ctx ctx, uint32_t action);
|
2022-10-02 14:09:25 +08:00
|
|
|
void add_syscall_nr(int syscall_nr, scmp_filter_ctx ctx, uint32_t action);
|
|
|
|
|
|
|
|
#endif // WOJ_SANDBOX_SANDBOX_H
|