Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*pack: implement rootless unpacking/repacking #26

Closed
cyphar opened this issue Nov 7, 2016 · 2 comments
Closed

*pack: implement rootless unpacking/repacking #26

cyphar opened this issue Nov 7, 2016 · 2 comments
Milestone

Comments

@cyphar
Copy link
Member

cyphar commented Nov 7, 2016

Currently umoci unpack requires root privileges to set the owners of the files, and thus umoci repack sometimes needs root privileges to even read the files to the archive. This makes rootless image manipulation not practical (and makes it effectively impossible to include umoci as part of a build system).

To fix this we should implement some sort of user mapping into the new version of unpack (which is saved in the unpacked bundle) and then on repack we use the same mapping to modify the *.mtree diffs we got.

@cyphar
Copy link
Member Author

cyphar commented Nov 10, 2016

This is necessary for sane integration tests in #12.

@cyphar cyphar mentioned this issue Nov 10, 2016
22 tasks
@cyphar
Copy link
Member Author

cyphar commented Nov 13, 2016

This is being worked on in https://github.com/cyphar/umoci/tree/packing-add-id-mappings.

@cyphar cyphar changed the title *pack: implement unprivileged unpacking/repacking *pack: implement rootless unpacking/repacking Nov 23, 2016
cyphar referenced this issue Dec 5, 2016
Implements cyphar/umoci#26
Signed-off-by: Aleksa Sarai <[email protected]>
@cyphar cyphar closed this as completed Dec 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant