Skip to main contentCrate safe_shell_sandbox
Source - proxy
- SandboxConfig
- Configuration for the sandbox, built from the merged profile.
- SandboxResult
- Result from sandbox execution, including stats.
- ensure_path
- Ensure the environment has a usable PATH. If the scrubbed env
doesn’t include PATH, add a minimal one so commands like cat/ls work.
- execute_sandboxed
- Execute a command inside the sandbox.
- execute_with_config
- Execute with full sandbox config (used by CLI with profile).
- resolve_path
- Resolve a path pattern: expand
~ to home dir, . and relative paths to absolute. - resolve_shell
- Resolve the absolute path to bash for sandbox execution.