Skip to main content

map_op

Function map_op 

Source
pub fn map_op(
    op: &Op,
    cfg: &mut Config,
    env: &mut BTreeMap<Vec<u8>, Vec<u8>>,
    argv0: &mut Option<Vec<u8>>,
    host: &dyn Host,
) -> Result<(), CliError>
Expand description

Applies an operation that touches only the configuration (no filesystem work).

§Arguments

  • op - Parsed operation.
  • cfg - Configuration being built.
  • env - Environment being built for the command.
  • argv0 - Receives --argv0.
  • host - The process whose descriptors --seccomp and --add-seccomp-fd name.

§Errors

CliError::Usage for unreadable descriptors and unsupported overlays.