Bug 832494 - tar does not restore security.capability xattr
tar does not restore security.capability xattr
Status: CLOSED DUPLICATE of bug 771927
Product: Fedora
Classification: Fedora
Component: tar (Show other bugs)
Unspecified Unspecified
unspecified Severity medium
: ---
: ---
Assigned To: Ondrej Vasik
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2012-06-15 10:33 EDT by Jeff Layton
Modified: 2014-06-18 03:42 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-06-15 10:50:26 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jeff Layton 2012-06-15 10:33:32 EDT
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 10:50:26 EDT

*** 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.