smith icon indicating copy to clipboard operation
smith copied to clipboard

smith removes Xattrs such as security.capabilities from files

Open astromechza opened this issue 5 years ago • 0 comments

When packaging an image, Smith does not copy across extended attributes on the files.

This means that users that need capability bits for running an image as non-root need to apply these retroactively to the image in new layers.

To fix, I assume we need some work in pack.go to copy across the PAXRecords from the file info to the tar headers in a similar way to https://golang.org/src/archive/tar/common.go?s=22088:22153#L619

astromechza avatar Jun 25 '19 11:06 astromechza