aboutgitcodelistschat:MatrixIRC
path: root/operations.c
diff options
context:
space:
mode:
authorAlice Frosi <afrosi@redhat.com>2023-02-27 13:21:39 +0100
committerAlice Frosi <afrosi@redhat.com>2023-02-27 13:21:39 +0100
commit33750f1e9cf151d64e77f73a0f632b6de586a30e (patch)
tree37996690717f8ee1d9c00d1e504582d5f3b8494f /operations.c
parentb46f5dba8b990cdbb7c3e6f9217da09dbe251372 (diff)
downloadseitan-33750f1e9cf151d64e77f73a0f632b6de586a30e.tar
seitan-33750f1e9cf151d64e77f73a0f632b6de586a30e.tar.gz
seitan-33750f1e9cf151d64e77f73a0f632b6de586a30e.tar.bz2
seitan-33750f1e9cf151d64e77f73a0f632b6de586a30e.tar.lz
seitan-33750f1e9cf151d64e77f73a0f632b6de586a30e.tar.xz
seitan-33750f1e9cf151d64e77f73a0f632b6de586a30e.tar.zst
seitan-33750f1e9cf151d64e77f73a0f632b6de586a30e.zip
seitan: add op_end
The op_end signal to terminate reading the operations. This is useful for the introductions of branches for the matches.
Diffstat (limited to 'operations.c')
-rw-r--r--operations.c3
1 files changed, 3 insertions, 0 deletions
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);