Add mask option to hide paths/files from sandbox

This commit is contained in:
2026-04-01 23:19:08 +02:00
parent 0119834d5a
commit c7c4c673cb
5 changed files with 176 additions and 1 deletions

View File

@@ -54,6 +54,10 @@ pub struct Args {
#[arg(long)]
pub no_config: bool,
/// Hide a path inside the sandbox with a tmpfs overlay (repeatable)
#[arg(long = "mask", value_name = "PATH", action = clap::ArgAction::Append)]
pub mask: Vec<PathBuf>,
/// Command and arguments to run inside the sandbox
#[arg(trailing_var_arg = true, allow_hyphen_values = true)]
pub command_and_args: Vec<OsString>,