Red Hat Bugzilla – Bug 200925
Tar doesn't support xattr's (including SELinux context)
Last modified: 2007-11-30 17:11:39 EST
Created attachment 133416 [details]
Just the patch for xattr support.
Description of problem:
GNUtar doesn't create archives with extended attributes in them, or create
extended attributes for files from archives that have them. This problem is even
worse due to the fact that ACL's and SELinux use xattr's
Version-Release number of selected component (if applicable):
I've now got a patch that adds --xattrs --selinux, and --no-xattrs --no-selinux
allowing tar to create/extract archives that have user/root xattrs and selinux
context xattrs. ACL xattr's aren't in it yet.
It seems to work for me (tm).
Note that no documentation is written for the above arguments, yet.
The full srpms and i386 rpms are at (includes spec file changes, as well as patch):
Created attachment 133871 [details]
Final rawhide patch for xattrs+SELinux+ACL support
This is the final patch submitted to upstream. It includes ACL support,
documentation autoconf and a few other changes requested by upstream. Note that
this requires the LIB override hack to be removed from the spec file (works
fine if you just run the non-redhat code path).