Skip to main content

resolve_host

Function resolve_host 

Source
fn resolve_host(host: &[u8]) -> Vec<u8> ⓘ
Expand description

The real host path behind a binding or the root, symlinks resolved.

A binding names a host object, not a symlink to it: /etc/resolv.conf pointing into /run/systemd/resolve/ must bind the resolver file itself, or the guest would follow the link inside its own rootfs and find nothing. Same as PRoot’s realpath on every binding. A relative path becomes absolute the same way. A path that does not exist (yet) is kept as given.