Skip to main content

translate_path

Function translate_path 

Source
pub fn translate_path(
    fs: &Fs,
    pid: u32,
    dirfd: i32,
    path: &[u8],
    deref_final: bool,
) -> Result<Vec<u8>, i32>
Expand description

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.

§Arguments

As translate.

§Returns

An absolute host path.