moby--moby/pkg/chrootarchive
Tonis Tiigi 80f1169eca chrootarchive: don't create parent dirs outside of chroot
If chroot is used with a special root directory then create
destination directory within chroot. This works automatically
already due to extractor creating parent paths and is only
used currently with cp where parent paths are actually required
and error will be shown to user before reaching this point.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
(cherry picked from commit 52d285184068998c22632bfb869f6294b5613a58)
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2021-08-19 20:49:31 +00:00
..
archive.go chrootarchive: don't create parent dirs outside of chroot 2021-08-19 20:49:31 +00:00
archive_test.go chrootarchive: fix "conversion from int to string yields a string of one rune" 2020-06-25 13:38:42 +02:00
archive_unix.go pkg/chrootarchive: normalize comment formatting 2019-11-27 15:39:12 +01:00
archive_unix_test.go pkg/chrootarchive: Skip privileged tests when non-root 2020-12-15 09:47:48 +07:00
archive_windows.go Add chroot for tar packing operations 2019-06-03 09:45:29 -07:00
chroot_linux.go pkg/chrootarchive: use containerd/sys to detect UserNamespaces 2020-06-15 13:07:23 +02:00
chroot_unix.go Add realChroot for non linux/windows 2019-07-03 14:36:48 -07:00
diff.go Add canonical import comment 2018-02-05 16:51:57 -05:00
diff_unix.go pkg/chrootarchive: use containerd/sys to detect UserNamespaces 2020-06-15 13:07:23 +02:00
diff_windows.go Add canonical import comment 2018-02-05 16:51:57 -05:00
init_unix.go Add chroot for tar packing operations 2019-06-03 09:45:29 -07:00
init_windows.go Add canonical import comment 2018-02-05 16:51:57 -05:00