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

make the create appliance script handle capabilities #22

Open
mickours opened this issue Sep 21, 2016 · 1 comment
Open

make the create appliance script handle capabilities #22

mickours opened this issue Sep 21, 2016 · 1 comment

Comments

@mickours
Copy link
Contributor

This should be modified steps/data/helpers/create_appliance.py:230

@npf
Copy link
Contributor

npf commented Sep 21, 2016

Details here:
oar-team/kameleon-bootstrap-recipes#5

@npf npf changed the title make create appliance script conserve xattr make the create appliance script handle capabilities Sep 21, 2016
npf added a commit that referenced this issue Sep 22, 2016
closes #22

add tar options for the import of a tarball (create_appliance.py)
fix tar options for the creation of the tarball (export_appliance.py)

=> remove --acls: see
https://intranet.grid5000.fr/bugzilla/show_bug.cgi?id=6386#c21

=> add --xattrs-include='*':
- needed only for tar -x, and require root/sudo
- armless for tar -c

e.g.:

$ tar --xattrs -cvf /tmp/t.tar /bin/ping ; sudo tar --xattrs --xattrs-
include='*' -xvf /tmp/t.tar ; getcap /tmp/bin/ping
tar: Removing leading `/' from member names
/bin/ping
bin/ping
/tmp/bin/ping = cap_net_raw+ep

same as

$ tar --xattrs-include='*' --xattrs -cvf /tmp/t.tar /bin/ping ; sudo tar
--xattrs --xattrs-include='*' -xvf /tmp/t.tar ; getcap /tmp/bin/ping
tar: Removing leading `/' from member names
/bin/ping
bin/ping
/tmp/bin/ping = cap_net_raw+ep
npf pushed a commit that referenced this issue Jan 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants