Expand description
Translating a tracee’s (dirfd, path) into the object to act on, or
into a host path, and back.
Functions§
- detranslate_
path - Translates a host path back into the guest’s view (for
readlinkon/procmagic links andgetcwd). - guest_
cwd - The guest path of a tracee’s working directory.
- guest_
dirfd_ path - The guest path of
dirfditself, or of the tracee’s cwd forAT_FDCWD: what an empty path names in the calls that allow one (AT_EMPTY_PATH, andreadlinkatalways). - guest_
fd_ path - Reads the guest path of a tracee’s open directory descriptor.
- read_
link readlink(2)on a host path, as bytes.- strip_
deleted - Drops the
(deleted)marker/procappends to links of unlinked targets. - translate
- Translates a path as seen by a tracee into the object to operate on.
- translate_
path - Translates a path as seen by a tracee into a textual host path, for the callers that hand the path to a program or to the tracee itself (the exec plan, the ptrace tier’s in-place rewrites): the kernel then resolves it again on the host.