From 33750f1e9cf151d64e77f73a0f632b6de586a30e Mon Sep 17 00:00:00 2001 From: Alice Frosi Date: Mon, 27 Feb 2023 13:21:39 +0100 Subject: seitan: add op_end The op_end signal to terminate reading the operations. This is useful for the introductions of branches for the matches. --- operations.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'operations.c') diff --git a/operations.c b/operations.c index 6b19212..8cd0828 100644 --- a/operations.c +++ b/operations.c @@ -311,6 +311,9 @@ int do_operations(void *data, struct op operations[], struct seccomp_notif *req, notifyfd) < 0) return -1; break; + case OP_END: + return 0; + break; default: fprintf(stderr, "unknow operation %d \n", operations[i].type); -- cgit v1.2.3