WrapWithSandboxOptions class

Per-invocation options for {@link wrapWithSandbox} / {@link wrapWithSandboxArgv} that aren't sandbox policy (that's customConfig).

Constructors

WrapWithSandboxOptions({String? commandId, String? commandText})
const

Properties

commandId → String?
Opaque per-invocation correlation key. Violations observed while the wrapped command runs (seatbelt log lines, seccomp events, proxy denies) are stored under this key, so it must equal what you later pass to annotateStderrWithSandboxFailures / getViolationsForCommand. Defaults to command. Prefer a unique id (e.g. a tool-use id) over the command text: keys are compared on their first 100 characters, so two long commands sharing a prefix would otherwise cross-attribute, and a rerun of the same text would inherit the earlier run's events.
final
commandText → String?
The command this invocation represents, when that differs from the string being wrapped (e.g. you wrap an assembled source <snapshot> && eval '<cmd>' but the user-facing command is <cmd>). Used for ignoreViolations command-pattern matching and reported as the violation's command. Defaults to command.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited