From 2a0e9e1d8ebabf71299c7027d4577b5c709d6ea5 Mon Sep 17 00:00:00 2001 From: Alice Frosi Date: Tue, 24 Jan 2023 17:05:11 +0100 Subject: seitan: action for the call Perform the action action with the context. The action call executes a syscall in the given namespaces or in caller context if non is specified. Signed-off-by: Alice Frosi --- actions.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 actions.h (limited to 'actions.h') diff --git a/actions.h b/actions.h new file mode 100644 index 0000000..3636f04 --- /dev/null +++ b/actions.h @@ -0,0 +1,20 @@ +#ifndef ACIONS_H +#define ACTIONS_H + +#include + +#define STACK_SIZE (1024 * 1024 / 8) +#define NS_NUM (sizeof(enum ns_type)) + +struct arg_clone { + const struct act_call *args; + pid_t pid; + long ret; + int err; +}; + +int do_call(struct arg_clone *c); +int do_actions(struct action actions[], unsigned int n_actions, int tpid, + int notifyfd, uint64_t id); +#endif /* ACTIONS_H */ + -- cgit v1.2.3