containerd/diff
Maksym Pavlenko 0f51aa874d Add NoSameOwner option when unpacking tars
When unpacking a TAR archive, containerd preserves file's owner:
https://github.com/containerd/containerd/blob/main/archive/tar.go#L384

In some cases this behavior is not desired. In current implementation we
avoid `Lchown` on Windows. Another case when this should be skipped is
when using native snapshotter on darwin and running as non-root user.

This PR extracts a generic option - `WithNoSameOwner` (same as
`tar --no-same-owner`) to skip `Lchown` when its not required.

Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2022-09-09 17:07:26 -07:00
..
apply Add NoSameOwner option when unpacking tars 2022-09-09 17:07:26 -07:00
lcow LCOW differ return ErrNotImplemented for wrong mount type 2022-06-28 17:19:04 -07:00
walking feat: replace github.com/pkg/errors to errors 2022-01-07 10:27:03 +08:00
windows Add NoSameOwner option when unpacking tars 2022-09-09 17:07:26 -07:00
diff.go diff: hide types.Any from clients 2022-04-21 13:43:20 +00:00
stream_unix.go Add Wait to binaryProcessor 2022-05-09 17:15:00 -04:00
stream_windows.go Add Wait to binaryProcessor 2022-05-09 17:15:00 -04:00
stream.go diff: hide types.Any from clients 2022-04-21 13:43:20 +00:00