mirror of
https://github.com/docker/cli.git
synced 2026-01-18 08:21:31 +03:00
This patch fixes the bug that allowed cp to copy files outside of the containers rootfs, by passing a relative path (such as ../../../../../../../../etc/shadow). This is fixed by first converting the path to an absolute path (relative to /) and then appending it to the container's rootfs before continuing. Docker-DCO-1.1-Signed-off-by: Aleksa Sarai <cyphar@cyphar.com> (github: cyphar) Upstream-commit: bfc3a4192ae5723e401470688cdae59b95bd61f1 Component: engine