From 612ca8d38085b5ab33692432bb752f75bd403c97 Mon Sep 17 00:00:00 2001 From: Andrey Sokolov Date: Thu, 24 Jun 2021 16:11:31 +0300 Subject: [PATCH] Fix Bubblewrap self test --- rust/src/bwrap.rs | 3 +++ 1 file changed, 3 insertions(+) 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"); }