Skip to main content

command_requires_approval

Function command_requires_approval 

Source
pub fn command_requires_approval(command: &[String]) -> bool
Expand description

Returns whether the command crosses an inline-code boundary that must be admitted by an enforceable sandbox or explicit human approval.

This is deliberately separate from command_might_be_dangerous: inline interpreter programs are not forbidden outright, but their source text can perform arbitrary effects that argv-level command classification cannot prove safe.