From 9399065325f6309fe37d90fe2595aea28f7c34b6 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Fri, 2 Jun 2023 16:54:22 +0200 Subject: seitan: whoops Signed-off-by: Stefano Brivio --- operations.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'operations.c') diff --git a/operations.c b/operations.c index e210e2f..5d295c6 100644 --- a/operations.c +++ b/operations.c @@ -309,8 +309,8 @@ int op_continue(const struct seccomp_notif *req, int notifier, struct gluten *g, return 0; } -static int op_fd(const struct seccomp_notif *req, int notifier, - struct gluten *g, struct op_fd *op) +int op_fd(const struct seccomp_notif *req, int notifier, + struct gluten *g, struct op_fd *op) { const struct fd_desc *desc = gluten_ptr(&req->data, g, op->desc); struct seccomp_notif_addfd resp; @@ -435,8 +435,7 @@ int eval(struct gluten *g, const struct seccomp_notif *req, HANDLE_OP(OP_BLOCK, op_block, block); HANDLE_OP(OP_RETURN, op_return, ret); HANDLE_OP(OP_CONT, op_continue, NO_FIELD); - HANDLE_OP(OP_INJECT_A, op_inject_a, inject); - HANDLE_OP(OP_INJECT, op_inject, inject); + HANDLE_OP(OP_FD, op_fd, fd); HANDLE_OP(OP_LOAD, op_load, load); HANDLE_OP(OP_CMP, op_cmp, cmp); HANDLE_OP(OP_RESOLVEDFD, op_resolve_fd, resfd); -- cgit v1.2.3