From dd9d5a78f0e48f92cd290cf23185c381e2153e40 Mon Sep 17 00:00:00 2001 From: Alice Frosi Date: Thu, 26 Jan 2023 16:21:43 +0100 Subject: seitan: add continue action The continue action let the filtered syscall continue the execution. Signed-off-by: Alice Frosi --- actions.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'actions.c') diff --git a/actions.c b/actions.c index 946d9fc..8f08252 100644 --- a/actions.c +++ b/actions.c @@ -201,6 +201,15 @@ int do_actions(struct action actions[], unsigned int n_actions, int pid, if (send_target(&resp, notifyfd) == -1) return -1; break; + + case A_CONT: + resp.id = id; + resp.flags |= SECCOMP_USER_NOTIF_FLAG_CONTINUE; + resp.error = 0; + resp.val = 0; + if (send_target(&resp, notifyfd) == -1) + return -1; + break; default: fprintf(stderr, "unknow action %d \n", actions[i].type); } -- cgit v1.2.3