Skip to content
This repository has been archived by the owner on Feb 6, 2020. It is now read-only.

smith removes Xattrs such as security.capabilities from files #38

Open
astromechza opened this issue Jun 25, 2019 · 0 comments
Open

smith removes Xattrs such as security.capabilities from files #38

astromechza opened this issue Jun 25, 2019 · 0 comments

Comments

@astromechza
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant