Bug 1398082
Summary: | ReaR didn't recover ACL attribute of files | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | JongYoung Moon <jmoon> |
Component: | rear | Assignee: | Jakub Mazanek <jmazanek> |
Status: | CLOSED NOTABUG | QA Contact: | qe-baseos-daemons |
Severity: | urgent | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.2 | CC: | gratien.dhaese, praiskup, tcerna |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-02-23 15:49:27 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: | |||
Bug Depends On: | |||
Bug Blocks: | 1400961 |
Description
JongYoung Moon
2016-11-24 04:46:29 UTC
This is not a rear bug. It seems to be a bug in tar utility. If you believe this should be fixed, please file a bug to tar example: [root@unused-4-187 tmp]# setfacl -m u:jmazanek:r hello_file [root@unused-4-187 tmp]# getfacl hello_file # file: hello_file # owner: jmazanek # group: jmazanek user::rw- user:jmazanek:r-- group::rw- mask::rw- other::r-- [root@unused-4-187 tmp]# tar --acls -vczf hello.tar.gz hello_file hello_file [root@unused-4-187 tmp]# tar -xvzf hello.tar.gz hello_file [root@unused-4-187 tmp]# getfacl hello_file # file: hello_file # owner: jmazanek # group: jmazanek user::rw- group::rw- other::r-- (In reply to Jakub Mazanek from comment #2) > [root@unused-4-187 tmp]# tar -xvzf hello.tar.gz > hello_file Extended attributes are not extracted by default, at least not these days. So to make it work, we need to use 'tar --acls -xf hello.tar.gz'. See also the content of https://github.com/rear/rear/issues/1175 - I believe there are issues in tar itself with xattr and capabilities. |