aboutgitcodelistschat:MatrixIRC
diff options
context:
space:
mode:
-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 */