From b2e31a6e7493c56f923cb7d86f7a8a32940393ec Mon Sep 17 00:00:00 2001 From: Alice Frosi Date: Wed, 7 Jun 2023 14:07:23 +0200 Subject: seitan,cooker: op_resolvefd ops: - update resolvefd with the description - add debug prints cooker: - add emit_resolvefd when match has type FDPATH --- cooker/emit.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cooker/emit.h') diff --git a/cooker/emit.h b/cooker/emit.h index 9ec64e0..18618ee 100644 --- a/cooker/emit.h +++ b/cooker/emit.h @@ -16,6 +16,7 @@ void emit_load(struct gluten_ctx *g, struct gluten_offset dst, 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); 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); @@ -29,6 +30,8 @@ void emit_copy(struct gluten_ctx *g, struct gluten_offset dst, struct gluten_offset src, size_t size); void emit_copy_field(struct gluten_ctx *g, struct field *field, struct gluten_offset dst, struct gluten_offset src); +void emit_resolvefd(struct gluten_ctx *g, struct gluten_offset fd, + struct gluten_offset path, size_t path_size); void emit_end(struct gluten_ctx *g); struct gluten_offset emit_data(struct gluten_ctx *g, enum type type, size_t str_len, union value *value); -- cgit v1.2.3