aboutsummaryrefslogtreecommitdiffhomepage
path: root/sandbox/seccomp/seccomp-build.c
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-04-08 01:59:45 +0900
committerOphestra <cat@gensokyo.uk>2025-04-08 01:59:45 +0900
commit584405f7ccd4c8c0e63762e113f4650f2abd469e (patch)
treef72d79d1a90e9bffe8f5c975e564ad40c602f2f7 /sandbox/seccomp/seccomp-build.c
parent50127ed5f9bc89f38c7d5d1aa06b4d99229b9c64 (diff)
sandbox/seccomp: rename flag type and constants
The names are ambiguous. Rename them to make more sense. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'sandbox/seccomp/seccomp-build.c')
-rw-r--r--sandbox/seccomp/seccomp-build.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sandbox/seccomp/seccomp-build.c b/sandbox/seccomp/seccomp-build.c
index 9423e78f..ee2cc63e 100644
--- a/sandbox/seccomp/seccomp-build.c
+++ b/sandbox/seccomp/seccomp-build.c
@@ -47,7 +47,7 @@ struct f_syscall_act {
} \
} while (0)
-int32_t f_build_filter(int *ret_p, int fd, uint32_t arch, uint32_t multiarch, f_syscall_opts opts) {
+int32_t f_build_filter(int *ret_p, int fd, uint32_t arch, uint32_t multiarch, f_filter_opts opts) {
int32_t res = 0; // refer to resErr for meaning
int allow_multiarch = opts & F_MULTIARCH;
int allowed_personality = PER_LINUX;
@@ -209,7 +209,7 @@ int32_t f_build_filter(int *ret_p, int fd, uint32_t arch, uint32_t multiarch, f_
struct
{
int family;
- f_syscall_opts flags_mask;
+ f_filter_opts flags_mask;
} socket_family_allowlist[] = {
// NOTE: Keep in numerical order
{ AF_UNSPEC, 0 },