preopens with Caps::all, implement create, remove dir, remove file
This commit is contained in:
@@ -100,7 +100,7 @@ impl WasiCtxBuilder {
|
||||
dir: Box<dyn WasiDir>,
|
||||
path: impl AsRef<Path>,
|
||||
) -> Result<&mut Self, Error> {
|
||||
let caps = DirCaps::OPEN | DirCaps::CREATE_FILE; // XXX more base caps
|
||||
let caps = DirCaps::all();
|
||||
let file_caps = FileCaps::READ | FileCaps::WRITE; // XXX more base caps
|
||||
self.0.table().push(Box::new(DirEntry::new(
|
||||
caps,
|
||||
|
||||
Reference in New Issue
Block a user