Add chroot for tar packing operations
authorBrian Goff <cpuguy83@gmail.com>
Thu, 30 May 2019 21:55:52 +0000 (14:55 -0700)
committerFelix Geyer <fgeyer@debian.org>
Tue, 3 Sep 2019 17:59:35 +0000 (18:59 +0100)
commita7364b3326b2aab2de91ddfd09503e7f1372b535
tree05836fe7ef82fc809fb8a1a5cceca9f90cbe3728
parent844b9d6cc963a15a78efb86cf5e88e8bfdb52d49
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