Bug 850291 - RFE: Adding support for listing of extended attributes and new --xattrs-include/--xattrs-exclude options.
RFE: Adding support for listing of extended attributes and new --xattrs-inclu...
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: tar (Show other bugs)
rawhide
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Pavel Raiskup
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-21 10:03 EDT by Pavel Raiskup
Modified: 2012-08-28 03:14 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-08-21 10:56:04 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Pavel Raiskup 2012-08-21 10:03:04 EDT
Hello,

I'm pushing to rawhide updated xattrs patch with:

  a) new options:

     --xattrs-include=MASK
     --xattrs-exclude=MASK

     see the info pages..

  b) possibility to list extended file attributes stored inside archive:

     $ tar --xattrs --selinux --acls --verbose -tf archive.tar
     drwxrwxr-x. praiskup/praiskup 0 2012-08-21 15:46 dir/
     -rw-rw-r--. praiskup/praiskup 0 2012-08-21 15:46 dir/file
     -rw-rw-r--+ praiskup/praiskup 0 2012-08-21 15:46 dir/acls
     #         ^
     # HERE !  ^ is the change

     $ tar --xattrs --selinux --acls --verbose --verbose -tf archive.tar
     drwxrwxr-x. praiskup/praiskup 0 2012-08-21 15:46 dir/
       s: unconfined_u:object_r:user_tmp_t:s0
     -rw-rw-r--. praiskup/praiskup 0 2012-08-21 15:46 dir/file
       s: unconfined_u:object_r:user_tmp_t:s0
       x: 4 user.test
     -rw-rw-r--+ praiskup/praiskup 0 2012-08-21 15:46 dir/acls
       s: unconfined_u:object_r:user_tmp_t:s0
       a: user::rw-,user:praiskup:---,group::rw-,mask::rw-,other::r--

   c) no default enabled domain outside 'user.*' for extract mode, everything
      you want to restore may be specified by --xattrs-include option.

   d) possibility to hide xattr write warning by --warning=no-xattr-write

   e) no double-setting of xattrs for regular files during extracting

   f) no infinite-loop when not covered attribute was restored from archive

   g) --no-xattrs --no-acls and --no-selinux are set by default for all modes

Any comment welcomed!

Pavel
Comment 1 Pavel Raiskup 2012-08-21 10:49:08 EDT
Relevant commit:

  http://lists.fedoraproject.org/pipermail/scm-commits/2012-August/848117.html

For best testing you may run:

  $ fedpkg clone -a tar
  $ cd !$ && fedpkg compile
  $ cd tests
  $ sudo ./testsuite -k xattrs # note -- full check requires root!

Relevant build:

  http://koji.fedoraproject.org/koji/taskinfo?taskID=4409969

Feel free to reopen this bug when you see any problem.

Pavel
Comment 2 Pavel Raiskup 2012-08-28 03:14:21 EDT
Some fixes in manual page are covered in newest tar-rawhide release:

  http://koji.fedoraproject.org/koji/buildinfo?buildID=349824

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