View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007696 | CentOS-7 | tar | public | 2014-10-14 19:45 | 2014-10-14 19:45 |
Reporter | stern | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | new | Resolution | open | ||
Platform | x86_64 | OS | CentOS | OS Version | 7 |
Product Version | 7.0-1406 | ||||
Summary | 0007696: tar restores directories with incorrect ACLs | ||||
Description | When 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 Reproduce | Create 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 Information | On 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. | ||||
Tags | No tags attached. | ||||
abrt_hash | |||||
URL | |||||
Date Modified | Username | Field | Change |
---|---|---|---|
2014-10-14 19:45 | stern | New Issue |