Expand description
policy.rs — pure security core for the exec component.
Functions§
- build_
env - Build the child env: start empty, copy allow-listed host vars, apply
set, then strip anything matchingdeny_envglobs (deny wins, applied last). - eval_
args - Validate an args slice against the profile’s policy. Per-element. Order: deny_flags first, then allow mode. Empty slice always passes.
- is_
known_ shell - Defense-in-depth: reject known shells unless
allow_shell.