Bug 993048 - Libarchive (bsdtar) does not store or extract POSIX ACLs on linux
Summary: Libarchive (bsdtar) does not store or extract POSIX ACLs on linux
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: libarchive
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jaromír Končický
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-05 14:03 UTC by Pavel Raiskup
Modified: 2014-07-01 22:55 UTC (History)
3 users (show)

Fixed In Version: libarchive-3.1.2-7.fc19
Clone Of:
Environment:
Last Closed: 2013-08-18 00:35:53 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Pavel Raiskup 2013-08-05 14:03:06 UTC
I have checked the problem originally reported at [1] and at least on Fedora-19
libarchive it is really broken.

This is worth to fix in Fedora.

  $ touch FILENAME
  $ mkdir extract
  $ setfacl -m root:rwx TESTFILE
  $ getfacl TESTFILE
  # file: TESTFILE
  # owner: praiskup
  # group: praiskup
  user::rw-
  user:root:rwx
  group::rw-
  mask::rwx
  other::r--
  $ bsdtar -cpf test.tar TESTFILE&& bsdtar -xpf test.tar -C extract
  $ getfacl extract/TESTFILE 
  # file: extract/TESTFILE
  # owner: praiskup
  # group: praiskup
  user::rw-
  group::rwx
  other::r--

Pavel

[1] http://code.google.com/p/libarchive/issues/detail?id=329

Comment 1 Jaromír Končický 2013-08-07 11:54:41 UTC
The first thing I found out is that ACL_TYPE_NFS4 is not defined in my system (in my sys/acl.h).
This causes that functions translate_acl() in archive_read_disk_entry_from_file.c:440 and archive_write_disk_set_acls() in archive_write_disk_acl.c:69 are suppressed by #if defined() directive and thus saving and restoring ACLs is not performed.

I am using Fedora 19 3.10.4-300.fc19.x86_64.

Comment 2 Fedora Update System 2013-08-08 13:10:51 UTC
libarchive-3.1.2-7.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/libarchive-3.1.2-7.fc19

Comment 3 Fedora Update System 2013-08-09 17:02:52 UTC
Package libarchive-3.1.2-7.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing libarchive-3.1.2-7.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-14465/libarchive-3.1.2-7.fc19
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-08-18 00:35:53 UTC
libarchive-3.1.2-7.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.


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