Accept SRC:DST remap syntax in --ro/--rw

This commit is contained in:
2026-04-22 21:51:00 +02:00
parent 06bb638737
commit 305ac9d927
7 changed files with 250 additions and 59 deletions
+8 -2
View File
@@ -35,14 +35,20 @@ impl EnvEntry {
}
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct BindSpec {
pub source: PathBuf,
pub target: PathBuf,
}
pub struct SandboxConfig {
pub mode: SandboxMode,
pub hardened: bool,
pub unshare_net: bool,
pub seccomp: bool,
pub env_filter: bool,
pub extra_rw: Vec<PathBuf>,
pub extra_ro: Vec<PathBuf>,
pub extra_rw: Vec<BindSpec>,
pub extra_ro: Vec<BindSpec>,
pub mask: Vec<PathBuf>,
pub env: Vec<EnvEntry>,
pub unsetenv: Vec<String>,