aboutgitcodelistschat:MatrixIRC
path: root/operations.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2023-06-02 16:54:22 +0200
committerStefano Brivio <sbrivio@redhat.com>2023-06-02 16:54:22 +0200
commit9399065325f6309fe37d90fe2595aea28f7c34b6 (patch)
tree1167951e39b81147dc6ad19f6d22b9ff1fe90be7 /operations.c
parent6455b9dff0554adc11e8dbe8027d134c8584bc5d (diff)
downloadseitan-9399065325f6309fe37d90fe2595aea28f7c34b6.tar
seitan-9399065325f6309fe37d90fe2595aea28f7c34b6.tar.gz
seitan-9399065325f6309fe37d90fe2595aea28f7c34b6.tar.bz2
seitan-9399065325f6309fe37d90fe2595aea28f7c34b6.tar.lz
seitan-9399065325f6309fe37d90fe2595aea28f7c34b6.tar.xz
seitan-9399065325f6309fe37d90fe2595aea28f7c34b6.tar.zst
seitan-9399065325f6309fe37d90fe2595aea28f7c34b6.zip
seitan: whoops
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'operations.c')
-rw-r--r--operations.c7
1 files changed, 3 insertions, 4 deletions
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);