Skip to main content

handle

Function handle 

Source
pub fn handle(ctx: &Ctx, regs: &mut Regs)
Expand description

Dispatches a seccomp-trace stop to the right handler.

On error the syscall number is replaced so the kernel returns ENOSYS; precise errnos need an exit stop we do not take. A process running the exec trampoline (a nested launch) has its syscalls passed through, and its exec of the real target completes the pending exec.

ยงArguments

  • ctx - Shared supervisor state.
  • regs - Registers at the stop; edits are committed by the caller.