Accept SRC:DST remap syntax in --ro/--rw
This commit is contained in:
+8
-2
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user