From c38fccbc867019d6c063be1c1d8137edfe52f8de Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Wed, 7 Jun 2023 23:02:23 +0200 Subject: mknod/mknodat values, initial support for MASK flag, OP_BITWISE Signed-off-by: Stefano Brivio --- cooker/emit.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'cooker/emit.h') diff --git a/cooker/emit.h b/cooker/emit.h index 81f947e..978c9e0 100644 --- a/cooker/emit.h +++ b/cooker/emit.h @@ -13,10 +13,12 @@ void emit_call(struct gluten_ctx *g, struct ns_spec *ns, long nr, struct gluten_offset offset[6], struct gluten_offset ret_offset); void emit_load(struct gluten_ctx *g, struct gluten_offset dst, int index, size_t len); -struct gluten_offset emit_mask(struct gluten_ctx *g, enum type type, - struct gluten_offset src, - struct gluten_offset mask); struct gluten_offset emit_seccomp_data(int index); +struct gluten_offset emit_bitwise(struct gluten_ctx *g, enum type type, + enum bitwise_type op_type, + struct gluten_offset dst, + struct gluten_offset x, + struct gluten_offset y); void emit_cmp(struct gluten_ctx *g, enum op_cmp_type cmp, struct gluten_offset x, struct gluten_offset y, size_t size, enum jump_type jmp); @@ -43,5 +45,6 @@ struct gluten_offset emit_data_or(struct gluten_ctx *g, enum type type, union value *value); void link_block(struct gluten_ctx *g); void link_match(struct gluten_ctx *g); +void link_matches(struct gluten_ctx *g); #endif /* EMIT_H */ -- cgit v1.2.3