View Issue Details

IDProjectCategoryView StatusLast Update
0007696CentOS-7tarpublic2014-10-14 19:45
Reporterstern 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
Platformx86_64OSCentOSOS Version7
Product Version7.0-1406 
Target VersionFixed in Version 
Summary0007696: tar restores directories with incorrect ACLs
DescriptionWhen I use the --acls option to create and restore a tar archive including ACLs, directories are restored with incorrect ACLs. This is unacceptable behavior for a program that is heavily relied upon for backup management.
Steps To ReproduceCreate an empty directory and view its ACL list:

[stern@server ~]$ mkdir d
[stern@server ~]$ getfacl d
# file: d
# owner: stern
# group: stern
user::rwx
group::rwx
other::r-x

Then create a tar archive containing that directory, remove the directory, and restore it from the archive:

[stern@server ~]$ tar -cf a.tar --acls d
[stern@server ~]$ rmdir d
[stern@server ~]$ tar -xf a.tar --acls

Finally, check the ACL list of the restored directory:

[stern@server ~]$ getfacl d
# file: d
# owner: stern
# group: stern
user::rwx
group::rwx
other::r-x
default:user::rwx
default:group::rwx
default:other::r-x

The default ACL values have incorrectly been filled in, using the values of the directory's access permissions. The output should have been the same as for the getfacl command above.
Additional InformationOn a separate system running Fedora-20 this does not happen. In fact, when I create a tar archive under CentOS and restore it under Fedora, the ACL list is correct. And when I create a tar archive under Fedora and restore it under CentOS, the ACL list is wrong.
TagsNo tags attached.
abrt_hash
URL

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2014-10-14 19:45 stern New Issue