aboutgitcodelistschat:MatrixIRC
path: root/actions.c
diff options
context:
space:
mode:
authorAlice Frosi <afrosi@redhat.com>2023-01-26 16:21:43 +0100
committerAlice Frosi <afrosi@redhat.com>2023-02-15 13:10:01 +0100
commitdd9d5a78f0e48f92cd290cf23185c381e2153e40 (patch)
tree2fd161d4f2c3437ff98e3d69a1bad810140df453 /actions.c
parenta7f83ff7c7052191abc77323e4b5f146583d3bd0 (diff)
downloadseitan-dd9d5a78f0e48f92cd290cf23185c381e2153e40.tar
seitan-dd9d5a78f0e48f92cd290cf23185c381e2153e40.tar.gz
seitan-dd9d5a78f0e48f92cd290cf23185c381e2153e40.tar.bz2
seitan-dd9d5a78f0e48f92cd290cf23185c381e2153e40.tar.lz
seitan-dd9d5a78f0e48f92cd290cf23185c381e2153e40.tar.xz
seitan-dd9d5a78f0e48f92cd290cf23185c381e2153e40.tar.zst
seitan-dd9d5a78f0e48f92cd290cf23185c381e2153e40.zip
seitan: add continue action
The continue action let the filtered syscall continue the execution. Signed-off-by: Alice Frosi <afrosi@redhat.com>
Diffstat (limited to 'actions.c')
-rw-r--r--actions.c9
1 files changed, 9 insertions, 0 deletions
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);
}