Bug 832494 - tar does not restore security.capability xattr
Summary: tar does not restore security.capability xattr
Keywords:
Status: CLOSED DUPLICATE of bug 771927
Alias: None
Product: Fedora
Classification: Fedora
Component: tar
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Ondrej Vasik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-15 14:33 UTC by Jeff Layton
Modified: 2014-06-18 07:42 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-15 14:50:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jeff Layton 2012-06-15 14:33:32 UTC
If I back up a file with capabilities, using something like this:

    # tar cvf /tmp/ping.tar --xattrs --selinux --acls /usr/bin/ping

...and then untar it afterward:

    # tar xvf /tmp/ping.tar --xattrs --selinux --acls

...the resulting file does not have its file caps preserved. Stracing those commands shows that it queries the security.capability xattr when tarring, but the untar does not attempt to set that value.

Perhaps we need a --capabilities flag for tar?

Comment 1 Kamil Dudka 2012-06-15 14:50:26 UTC

*** This bug has been marked as a duplicate of bug 771927 ***


Note You need to log in before you can comment on or make changes to this bug.