Skip to main content

check_creds_ptrace_capable

Function check_creds_ptrace_capable 

Source
pub fn check_creds_ptrace_capable(
    current_task: &CurrentTask,
    creds: &Credentials,
    mode: PtraceAccessMode,
) -> Result<(), Errno>
Expand description

Checks if a task with the given creds has CAP_SYS_PTRACE, honoring PTRACE_MODE_NOAUDIT if set in mode.