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.