From 5a9302bab9c9bb3d1577f04678d074fb7af4115f Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Wed, 15 May 2024 08:49:56 +0200 Subject: Add fsetxattr(), fremovexattr(), open_by_handle_at(), and "virtiofsd demo" Mostly assorted fixes, a new FDGET operation (get a copy of the target file descriptor via pidfd_getfd()) and a new "FD" flag that means we have to do that on direct tag reference. Signed-off-by: Stefano Brivio --- cooker/match.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cooker/match.c') diff --git a/cooker/match.c b/cooker/match.c index c56d9e5..1fd726f 100644 --- a/cooker/match.c +++ b/cooker/match.c @@ -321,12 +321,13 @@ xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx JUMP_NEXT_BLOCK); break; case FDPATH: + case FDMOUNT: v.v_str = json_value_get_string(jvalue); size = strlen(v.v_str) + 1; offset = gluten_rw_alloc(g, size); const_offset = emit_data(g, STRING, size, &v); seccomp_offset = emit_seccomp_data(index); - emit_resolvefd(g, seccomp_offset, offset, size); + emit_resolvefd(g, f->type, seccomp_offset, offset, size); emit_cmp(g, CMP_NE, offset, const_offset, size, JUMP_NEXT_BLOCK); break; -- cgit v1.2.3