forked from go-debos/debos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pack,unpack: Save and restore xattrs and file capabilities in tarballs
Add options to `tar` to tell it to save and restore extended attributes: * `--xattr`: enable extended attributes support * `--xattrs-include=*.*`: tell `tar` to include every extended attribute since by default `tar` only stores attributes in the `user.*` namespace This fixes the `pack` and `unpack` actions when dealing with tools like `ping` which on modern distributions have been switched to use file capabilities to do privileged operations without being setuid, as they are based on extended attributes. This relies on `tar` being GNU Tar >= 1.27, released in 2013 and shipped since Debian Jessie. Signed-off-by: Emanuele Aina <[email protected]>
- Loading branch information
1 parent
9b64814
commit f5be960
Showing
3 changed files
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters