[PATCH] Ensure MkdirAllAndChown also sets perms
authorBrian Goff <cpuguy83@gmail.com>
Tue, 6 Oct 2020 19:30:07 +0000 (19:30 +0000)
committerFelix Geyer <fgeyer@debian.org>
Sun, 21 Feb 2021 17:18:35 +0000 (17:18 +0000)
commit7c9e85c6d9e1036aa5469e74072c20c03fe0ffe9
treeae44a4cc53f3104ec0c8e911668af24406944e68
parentbd1900611f16f522359a89b784f651b1685f0e1e
[PATCH] Ensure MkdirAllAndChown also sets perms

Generally if we ever need to change perms of a dir, between versions,
this ensures the permissions actually change when we think it should
change without having to handle special cases if it already existed.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
(cherry picked from commit edb62a3ace8c4303822a391b38231e577f8c2ee8)
Signed-off-by: Tibor Vass <tibor@docker.com>
Gbp-Pq: Name cve-2021-21284-1.patch
engine/pkg/idtools/idtools.go
engine/pkg/idtools/idtools_unix.go