Public bug reported:

As discussed at https://lists.ubuntu.com/archives/ubuntu-
devel/2018-August/040407.html ff, as of Ubuntu 18.04 an Ubuntu root
filesystem uses xattrs for storing filesystem capabilities.  We should
therefore have defaults for our tar that preserve these attributes
without needing to pass additional commandline options.

Currently when creating a tarball you must pass the non-default option
--xattrs and when extracting a tarball you must pass the non-default
option --xattrs-include=*.

The latter is particularly awkward, and Colin Watson found some version
of tar documentation that suggests --xattrs-include=* should never be
needed, only --xattrs.  But that doesn't appear in the version of tar(1)
in bionic, and in practice --xattrs-include=* is definitely required.

Ideally we want this changed in upstream tar as well since we can't rely
on users using the Ubuntu build of tar to unpack their Ubuntu
filesystems; but even without this we should change the default in
Ubuntu to take the sharp edges off for our users where possible.

** Affects: tar (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1785291

Title:
  tar --xattr and --xattr-include=* should be defaults

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tar/+bug/1785291/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to