Add chroot for tar packing operations
authorBrian Goff <cpuguy83@gmail.com>
Thu, 30 May 2019 21:55:52 +0000 (14:55 -0700)
committerShengjing Zhu <zhsj@debian.org>
Sat, 22 Jun 2019 17:25:10 +0000 (18:25 +0100)
commitcbb195e669ee5c017c3a4579979e6bd880e00122
tree6d174ecf9f145fa46a23b23f8240f77c334e6566
parent177fad15b5ccefc7490701ab6b383824e619f901
Add chroot for tar packing operations

Previously only unpack operations were supported with chroot.
This adds chroot support for packing operations.
This prevents potential breakouts when copying data from a container.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
Origin: upstream, https://github.com/moby/moby/pull/39292

Gbp-Pq: Name cve-2018-15664-02-add-chroot-for-tar-packing-operations.patch
engine/daemon/archive.go
engine/daemon/export.go
engine/pkg/chrootarchive/archive.go
engine/pkg/chrootarchive/archive_unix.go
engine/pkg/chrootarchive/archive_windows.go
engine/pkg/chrootarchive/init_unix.go