aboutgitcodelistschat:MatrixIRC
path: root/actions.h
diff options
context:
space:
mode:
authorAlice Frosi <afrosi@redhat.com>2023-01-24 17:05:11 +0100
committerAlice Frosi <afrosi@redhat.com>2023-02-15 13:10:01 +0100
commit2a0e9e1d8ebabf71299c7027d4577b5c709d6ea5 (patch)
tree02c8f267fd4224e05057343650884546f0aff739 /actions.h
parenta5ab34509d8a52c37ab6c9c5d5f3501b61bd8d0e (diff)
downloadseitan-2a0e9e1d8ebabf71299c7027d4577b5c709d6ea5.tar
seitan-2a0e9e1d8ebabf71299c7027d4577b5c709d6ea5.tar.gz
seitan-2a0e9e1d8ebabf71299c7027d4577b5c709d6ea5.tar.bz2
seitan-2a0e9e1d8ebabf71299c7027d4577b5c709d6ea5.tar.lz
seitan-2a0e9e1d8ebabf71299c7027d4577b5c709d6ea5.tar.xz
seitan-2a0e9e1d8ebabf71299c7027d4577b5c709d6ea5.tar.zst
seitan-2a0e9e1d8ebabf71299c7027d4577b5c709d6ea5.zip
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 <afrosi@redhat.com>
Diffstat (limited to 'actions.h')
-rw-r--r--actions.h20
1 files changed, 20 insertions, 0 deletions
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 <errno.h>
+
+#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 */
+