mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-07 09:25:43 +00:00
add a function to securely mount a subpath inside a volume. We cannot trust that the subpath is safe since it is beneath a volume that could be controlled by a separate container. To avoid TOCTOU races between when we check the subpath and when the OCI runtime mounts it, we open the subpath, validate it, bind mount to a temporary directory and use it instead of the original path. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com> |
||
|---|---|---|
| .. | ||
| camelcase | ||
| filters.go | ||
| filters_test.go | ||
| kube.go | ||
| mountOpts.go | ||
| mountOpts_linux.go | ||
| mountOpts_other.go | ||
| utils.go | ||
| utils_darwin.go | ||
| utils_freebsd.go | ||
| utils_linux.go | ||
| utils_linux_test.go | ||
| utils_supported.go | ||
| utils_test.go | ||
| utils_unsupported.go | ||
| utils_windows.go | ||