All checks were successful
Test / Create distribution (push) Successful in 27s
Test / Sandbox (push) Successful in 1m38s
Test / Fortify (push) Successful in 2m39s
Test / Sandbox (race detector) (push) Successful in 2m55s
Test / Fpkg (push) Successful in 3m26s
Test / Fortify (race detector) (push) Successful in 4m5s
Test / Flake checks (push) Successful in 56s
The names are ambiguous. Rename them to make more sense. Signed-off-by: Ophestra <cat@gensokyo.uk>
23 lines
642 B
C
23 lines
642 B
C
#include <stdint.h>
|
|
#include <seccomp.h>
|
|
|
|
#if (SCMP_VER_MAJOR < 2) || \
|
|
(SCMP_VER_MAJOR == 2 && SCMP_VER_MINOR < 5) || \
|
|
(SCMP_VER_MAJOR == 2 && SCMP_VER_MINOR == 5 && SCMP_VER_MICRO < 1)
|
|
#error This package requires libseccomp >= v2.5.1
|
|
#endif
|
|
|
|
typedef enum {
|
|
F_VERBOSE = 1 << 0,
|
|
F_EXT = 1 << 1,
|
|
F_DENY_NS = 1 << 2,
|
|
F_DENY_TTY = 1 << 3,
|
|
F_DENY_DEVEL = 1 << 4,
|
|
F_MULTIARCH = 1 << 5,
|
|
F_LINUX32 = 1 << 6,
|
|
F_CAN = 1 << 7,
|
|
F_BLUETOOTH = 1 << 8,
|
|
} f_filter_opts;
|
|
|
|
extern void f_println(char *v);
|
|
int32_t f_build_filter(int *ret_p, int fd, uint32_t arch, uint32_t multiarch, f_filter_opts opts); |