Fix Bubblewrap self test
This commit is contained in:
parent
31d9507f52
commit
612ca8d380
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user