Overview
As far as I can tell, wasmtime never checks descriptor-flags.mutate-directory.
Also, wasmtime seems to be passing down mutate-directory in open-at even when the caller/guest doesn't ask for it.
See line 1054 where the parent's permissions are just passed down:
|
OpenResult::Dir(dir) => Ok(Descriptor::Dir(Dir::new( |
|
dir, |
|
self.perms, |
|
self.file_perms, |
|
open_mode, |
|
allow_blocking_current_thread, |
|
))), |
Expected Results
mutate-directory should be required when editing directories, and should not be passed down from the parent automatically.
Actual Results
mutate-directory is ignored, and is passed down from the parent automatically.
Overview
As far as I can tell, wasmtime never checks
descriptor-flags.mutate-directory.Also, wasmtime seems to be passing down
mutate-directoryinopen-ateven when the caller/guest doesn't ask for it.See line 1054 where the parent's permissions are just passed down:
wasmtime/crates/wasi/src/filesystem.rs
Lines 1052 to 1058 in 33e8b3d
Expected Results
mutate-directoryshould be required when editing directories, and should not be passed down from the parent automatically.Actual Results
mutate-directoryis ignored, and is passed down from the parent automatically.