Skip to main content

resolve_host_paths

Function resolve_host_paths 

Source
pub fn resolve_host_paths(
    declared: &[DeclaredHostPath],
    context: &HostPathContext<'_>,
) -> Result<Vec<HostPath>, HostPathRefusal>
Expand description

Resolves every declared entry on this host and checks it, in config order.

Refuses an entry that does not exist or is not a directory, that resolves to /, that is or lies under a system path the runtime replaces, a read-write entry that is, lies under or contains murmur’s own home, an entry inside the work folder, and an entry resolving to a directory an earlier one already names. Credential locations are found but never refuse.