Fix Bubblewrap self test

This commit is contained in:
Andrey Sokolov 2021-06-24 16:11:31 +03:00
parent 31d9507f52
commit 612ca8d380

View File

@ -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");
}