nix
nix copied to clipboard
Support for PTRACE_GET_SYSCALL_INFO
trafficstars
Linux >= 5.3 supports ptrace(PTRACE_GET_SYSCALL_INFO, pid, sizeof(struct ptrace_syscall_info), &info) to obtain more information about a syscall stop. Do note that it apparently only works, if PTRACE_O_TRACESYSGOOD is set beforehand.
Happy to contribute too.
FreeBSD seems to support this too, but I don't have a system to test that on.
Go ahead and submit a PR. CI will check it for FreeBSD, or I can.
Any updates on this? I could spend some hours (at least for the Linux support) on this, as we need a CPU portable way to achieve syscall interception.
See #2006