mirror of https://github.com/containers/podman.git
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 |