aboutgitcodelistschat:MatrixIRC
path: root/cooker/emit.h
diff options
context:
space:
mode:
authorAlice Frosi <afrosi@redhat.com>2023-06-08 17:43:56 +0200
committerStefano Brivio <sbrivio@redhat.com>2023-06-09 10:31:35 +0200
commitf1f136577a52b1588da5f74683f41d14df410300 (patch)
tree10a66b9f78cc87182e9aac12db7b02dd6834bd6b /cooker/emit.h
parent15b54482241083d52b6e9857a66fecbf915d467d (diff)
downloadseitan-f1f136577a52b1588da5f74683f41d14df410300.tar
seitan-f1f136577a52b1588da5f74683f41d14df410300.tar.gz
seitan-f1f136577a52b1588da5f74683f41d14df410300.tar.bz2
seitan-f1f136577a52b1588da5f74683f41d14df410300.tar.lz
seitan-f1f136577a52b1588da5f74683f41d14df410300.tar.xz
seitan-f1f136577a52b1588da5f74683f41d14df410300.tar.zst
seitan-f1f136577a52b1588da5f74683f41d14df410300.zip
seitan,cooker: add wd to change work directory and mknod
./seitan-cooker demo/mknod.hjson demo/mknod.gluten demo/mknod.bpf Start seitan with the socket option: ./seitan -s /tmp/seitan.sock -i demo/mknod.gluten Start the container: sudo rm -f /dev/lol sudo chown $USER:$USER /tmp/seitan.sock podman run -ti --runtime /usr/bin/crun \ --security-opt label=disable \ -v $(pwd)/test:/test \ --annotation run.oci.seccomp_bpf_data="$(base64 -w0 demo/mknod.bpf)" \ --annotation run.oci.seccomp.receiver=/tmp/seitan.sock fedora \ sh -c 'mknod /dev/lol c 1 7 && ls -l /dev/lol'
Diffstat (limited to 'cooker/emit.h')
-rw-r--r--cooker/emit.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cooker/emit.h b/cooker/emit.h
index 978c9e0..b9d326f 100644
--- a/cooker/emit.h
+++ b/cooker/emit.h
@@ -8,7 +8,7 @@
void emit_nr(struct gluten_ctx *g, struct gluten_offset number);
void emit_fd(struct gluten_ctx *g, struct fd_desc *desc);
-void emit_call(struct gluten_ctx *g, struct ns_spec *ns, long nr,
+void emit_call(struct gluten_ctx *g, struct context_desc *cdesc, long nr,
unsigned count, bool is_ptr[6],
struct gluten_offset offset[6], struct gluten_offset ret_offset);
void emit_load(struct gluten_ctx *g, struct gluten_offset dst,