Bug 832494
| Summary: | tar does not restore security.capability xattr | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Jeff Layton <jlayton> |
| Component: | tar | Assignee: | Ondrej Vasik <ovasik> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 17 | CC: | kdudka, ovasik, praiskup, steved |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-06-15 14:50:26 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
*** This bug has been marked as a duplicate of bug 771927 *** |
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?