From 240eb94b44f9dc613a85911d4190df129372e9cc Mon Sep 17 00:00:00 2001 From: Alice Frosi Date: Tue, 18 Jul 2023 11:15:53 +0200 Subject: cooker: generate OCI seccomp profile Generate the OCI seccomp profile instead of directly the BPF filter. The seccomp profile will be used consquently by the container runtime as input in order to generate the BPF filter. Example with mknod: $ seitan-cooker -g /tmp/gluten -p /tmp/scmp_prof.json -s seccomp.json -i demo/mknod.hjson $ seitan -s /tmp/seitan.sock -i /tmp/gluten $ podman run --cap-drop ALL --security-opt=seccomp=/tmp/scmp_prof.json \ --annotation run.oci.seccomp.receiver=/tmp/seitan.sock \ -ti fedora \ sh -c 'mknod /dev/lol c 1 7 && ls /dev/lol' /dev/lol Signed-off-by: Alice Frosi --- cooker/emit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cooker/emit.h') diff --git a/cooker/emit.h b/cooker/emit.h index 7413eec..835aae7 100644 --- a/cooker/emit.h +++ b/cooker/emit.h @@ -46,7 +46,7 @@ struct gluten_offset emit_data_or(struct gluten_ctx *g, struct gluten_offset offset, enum type type, union value *value); void emit_bpf_arg(int index, enum type type, union value v, union value mask, - enum op_cmp_type cmp); + enum op_cmp_type cmp, enum scmp_mode mode); void link_block(struct gluten_ctx *g); void link_match(struct gluten_ctx *g); void link_matches(struct gluten_ctx *g); -- cgit v1.2.3