From e150f5a42c40b5174ae385594e624dbf81be4e25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Tue, 25 Oct 2022 09:27:52 +0200 Subject: [PATCH] Relax rights on create_fd --- lib/wasi/src/syscalls/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wasi/src/syscalls/mod.rs b/lib/wasi/src/syscalls/mod.rs index 637412be11a..efb01719357 100644 --- a/lib/wasi/src/syscalls/mod.rs +++ b/lib/wasi/src/syscalls/mod.rs @@ -2454,7 +2454,7 @@ pub fn path_open( // TODO: check and reduce these // TODO: ensure a mutable fd to root can never be opened let out_fd = wasi_try!(state.fs.create_fd( - adjusted_rights, + working_dir_rights_inheriting, fs_rights_inheriting, fs_flags, open_flags,