Expand description
Handlers for syscalls that take a ptrace stop: the path (or socket address) is rewritten in the tracee’s memory and the syscall proceeds.
Functions§
- handle
- Dispatches a seccomp-trace stop to the right handler.
- push_
cstr - Writes
bytesplus a NUL onto the tracee’s stack and returns the address. - rewrite_
path_ arg - Translates the path in argument
indexand points it at the host path. - rewrite_
path_ arg_ at - Translates a
dirfd-relative path argument and points it at the host path. - rewrite_
sockaddr 🔒 - Translates the
sun_pathof anAF_UNIXaddress inconnect/bind. - rewrite_
socketcall 🔒 - Translates
bind/connectissued through the i386socketcallmultiplexer. - translate_
sockaddr 🔒 - Translates an
AF_UNIXaddress in tracee memory, returning a rewritten copy.