aboutsummaryrefslogtreecommitdiffhomepage
path: root/sandbox/seccomp/seccomp-build.h
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-06-18 13:43:48 +0900
committerOphestra <cat@gensokyo.uk>2025-06-18 13:45:34 +0900
commitef80b19f2fbd6953340ff463b865931f32d14fb7 (patch)
treeb907dd628ab07416afa1040be2765c7818c0f708 /sandbox/seccomp/seccomp-build.h
parent717771ae8023ea3d00b794b8a89babe70fe773e6 (diff)
treewide: switch to clang-format
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'sandbox/seccomp/seccomp-build.h')
-rw-r--r--sandbox/seccomp/seccomp-build.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/sandbox/seccomp/seccomp-build.h b/sandbox/seccomp/seccomp-build.h
index 0b3a0952..9a4e4d7a 100644
--- a/sandbox/seccomp/seccomp-build.h
+++ b/sandbox/seccomp/seccomp-build.h
@@ -1,23 +1,23 @@
-#include <stdint.h>
#include <seccomp.h>
+#include <stdint.h>
-#if (SCMP_VER_MAJOR < 2) || \
- (SCMP_VER_MAJOR == 2 && SCMP_VER_MINOR < 5) || \
+#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_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_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); \ No newline at end of file
+int32_t f_build_filter(int *ret_p, int fd, uint32_t arch, uint32_t multiarch,
+ f_filter_opts opts); \ No newline at end of file