[PATCH v2 1/5] ptrace: PTRACE_SET_SYSCALL_INFO syscall skipping support
Oleg Nesterov
oleg at redhat.com
Fri Jul 3 10:58:41 UTC 2026
On 07/03, Renzo Davoli wrote:
>
> This patch extends PTRACE_SET_SYSCALL_INFO with support for skipping a system
> call triggered via seccomp.
>
> When the tracer retrieves a ptrace_syscall_info structure with
> op == PTRACE_SYSCALL_INFO_SECCOMP,
... or PTRACE_SYSCALL_INFO_ENTRY
> - /* Changing the type of the system call stop is not supported yet. */
> - if (ptrace_get_syscall_info_op(child) != info.op)
> - return -EINVAL;
> + /*
> + * Changing the type of the system call stop is
> + * not allowed, with the following exception:
> + * PTRACE_SYSCALL_INFO_SECCOMP can be changed to
> + * PTRACE_SYSCALL_INFO_EXIT to skip the system call
> + */
ditto
Oleg.
More information about the Strace-devel
mailing list