diff --git a/rust/src/bwrap.rs b/rust/src/bwrap.rs index 35b54f36..b44df42d 100644 --- a/rust/src/bwrap.rs +++ b/rust/src/bwrap.rs @@ -263,14 +263,17 @@ impl Bubblewrap { let mut ret = Self::new(rootfs_fd)?; match mutability { BubblewrapMutability::Immutable => { + ret.bind_read("bin", "/bin"); ret.bind_read("usr", "/usr"); ret.bind_read("etc", "/etc"); } BubblewrapMutability::RoFiles => { + ret.setup_rofiles("/bin")?; ret.setup_rofiles("/usr")?; ret.setup_rofiles("/etc")?; } BubblewrapMutability::MutateFreely => { + ret.bind_readwrite("bin", "/bin"); ret.bind_readwrite("usr", "/usr"); ret.bind_readwrite("etc", "/etc"); }