diff options
author | Alice Frosi <afrosi@redhat.com> | 2023-01-26 16:21:43 +0100 |
---|---|---|
committer | Alice Frosi <afrosi@redhat.com> | 2023-02-15 13:10:01 +0100 |
commit | dd9d5a78f0e48f92cd290cf23185c381e2153e40 (patch) | |
tree | 2fd161d4f2c3437ff98e3d69a1bad810140df453 /actions.c | |
parent | a7f83ff7c7052191abc77323e4b5f146583d3bd0 (diff) | |
download | seitan-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.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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); } |