aboutgitcodelistschat:MatrixIRC
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
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>
-rw-r--r--operations.c7
-rw-r--r--operations.h6
2 files changed, 5 insertions, 8 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);
diff --git a/operations.h b/operations.h
index d74b4f9..1ece615 100644
--- a/operations.h
+++ b/operations.h
@@ -49,10 +49,6 @@ int op_return(const struct seccomp_notif *req, int notifier, struct gluten *g,
struct op_return *op);
int op_continue(const struct seccomp_notif *req, int notifier, struct gluten *g,
void *);
-int op_inject(const struct seccomp_notif *req, int notifier, struct gluten *g,
- struct op_inject *op);
-int op_inject_a(const struct seccomp_notif *req, int notifier, struct gluten *g,
- struct op_inject *op);
int op_cmp(const struct seccomp_notif *req, int notifier, struct gluten *g,
struct op_cmp *op);
int op_resolve_fd(const struct seccomp_notif *req, int notifier,
@@ -61,4 +57,6 @@ int op_load(const struct seccomp_notif *req, int notifier, struct gluten *g,
struct op_load *load);
int op_copy(const struct seccomp_notif *req, int notifier, struct gluten *g,
struct op_copy *op);
+int op_fd(const struct seccomp_notif *req, int notifier, struct gluten *g,
+ struct op_fd *op);
#endif /* ACTIONS_H */