if inheriting rights are for files (not subdirs) then this is incorrect. if inheriting rights are for subdirs too, then we need to change the implementation.
This is the wasi-tests crate, which contains source code for the system-level WASI tests.
Building these tests requires that the wasm32-wasi target be installed.