Bug 1220891

Summary: --acls option sets default ACLs irregardless of ACLs set within the tarball
Product: Red Hat Enterprise Linux 6 Reporter: Kyle Squizzato <ksquizza>
Component: tarAssignee: Pavel Raiskup <praiskup>
Status: CLOSED ERRATA QA Contact: qe-baseos-daemons
Severity: high Docs Contact: Lenka Špačková <lkuprova>
Priority: high    
Version: 6.6CC: cww, hhorak, jpopelka, praiskup, psklenar, qe-baseos-daemons
Target Milestone: rc   
Target Release: 6.8   
Hardware: All   
OS: Linux   
Fixed In Version: tar-1.23-14.el6 Doc Type: Bug Fix
Doc Text:
*tar* now correctly sets ACL when `--acls` is used Previously, when a tar file was extracted using the `--acls` option, the extracted files inherited the default Access Control Lists (ACL) from the parent directory. With this update, when `--acls` is used, *tar* extracts all files and directories with the same ACLs that are set in the archive.
Story Points: ---
Clone Of: 1220890 Environment:
Last Closed: 2016-05-10 19:40:22 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:
Bug Depends On:    
Bug Blocks: 1172231, 1269927    

Description Kyle Squizzato 2015-05-12 18:39:35 UTC
+++ This bug was initially created as a clone of Bug #1220890 +++

Description of problem:
When a tarball is extracted using --acls option the default ACLs for directories are set despite the tarball doesn't have default ACLS set in them. 

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Apply some acls to a set of files/directories 
2. Tar them up 
3. Extract them 
4. View the acls set on the files/directories, they will be default acls

Actual results:
Using the --acls flag causes default ACLs to be applied on extraction. 

Expected results:
Use the --acls flag to preserve ACLs when extracting files and directories

Additional info: 
This has been resolved upstream: http://pkgs.fedoraproject.org/cgit/tar.git/commit/tar-1.27.1-default-acls.patch?h=f21&id=486bd7adf8f8ba625d937b1016bc2fe366569089

and is discussed here: https://www.mail-archive.com/bug-tar@gnu.org/msg04355.html

Comment 1 Kyle Squizzato 2015-05-12 18:41:32 UTC
For RHEL6 the Version-Release number of selected component (if applicable) is: 

Comment 8 errata-xmlrpc 2016-05-10 19:40:22 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.