Bug 993048

Summary: Libarchive (bsdtar) does not store or extract POSIX ACLs on linux
Product: [Fedora] Fedora Reporter: Pavel Raiskup <praiskup>
Component: libarchiveAssignee: Jaromír Končický <jkoncick>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: jkoncick, ovasik, praiskup
Target Milestone: ---Keywords: Upstream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libarchive-3.1.2-7.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-18 00:35:53 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:

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.