pub fn set_trap_cap_behavior(
    process: ProcSelector,
    config: TrapCapBehavior
) -> Result<()>
Available on crate feature process only.
Expand description

Set the current value of the capability mode violation trapping behavior. If this behavior is enabled, the kernel would deliver a Signal::Trap signal on any return from a system call that would result in a io::Errno::NOTCAPABLE or [io::Errno::CAPMODE`] error.

This behavior is inherited by the children of the process and is kept across execve calls.

References