Skip to main content

Module files

Module files 

Source
Expand description

File push/pull and path resolution helpers for the guest runtime.

All paths supplied by the daemon are resolved against the runtimeโ€™s work directory. Absolute paths and .. traversal are rejected.

Functionsยง

normalize_path ๐Ÿ”’
Normalize a path by resolving . and .. components without filesystem access.
pull_file ๐Ÿ”’
Read a file from the work directory.
push_file ๐Ÿ”’
Push file contents into the work directory under dest.
resolve_path ๐Ÿ”’
Resolve a relative path against work_dir, rejecting traversal attempts.