Created attachment 825281 [details] sample xattr.conf from http://marc.info/?l=linux-xfs&m=119359384800408 I noticed that cp and mv with --preserve=xattr will copy system.posix_acl_access extended attributes, which can have side effects with permissions. This is a little surprising and divergent from other systems that provide the attaced /etc/xattr.conf There is also security.selinux extended attributes to consider here. It might be argued that they might be excluded from such copies also, given that they're otherwise handled by cp and mv at least.
I have asked upstream to include the file into their distribution of attr: http://lists.nongnu.org/archive/html/acl-devel/2013-11/msg00007.html
upstream commit: http://git.savannah.gnu.org/cgit/attr.git/commit/?id=fe92f96a
fixed in attr-2.4.47-4.fc21
I think that nfs4_acl attributes should be preserved with --preserve=xattr because there is no other way to have them preserved by cp(1): --- a/xattr.conf +++ b/xattr.conf @@ -7,8 +7,6 @@ # permissions - copy when trying to preserve permissions. # skip - do not copy. -system.nfs4_acl permissions -system.nfs4acl permissions system.posix_acl_access permissions system.posix_acl_default permissions trusted.SGI_ACL_DEFAULT skip # xfs specific
patch proposed to GNU coreutils upstream: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=33644
This bug appears to have been reported against 'rawhide' during the Fedora 30 development cycle. Changing version to '30.
patches proposed to libattr upstream: http://lists.nongnu.org/archive/html/acl-devel/2019-03/msg00000.html http://lists.nongnu.org/archive/html/acl-devel/2019-03/msg00001.html
(In reply to Kamil Dudka from comment #7) > patches proposed to libattr upstream: > > http://lists.nongnu.org/archive/html/acl-devel/2019-03/msg00000.html > http://lists.nongnu.org/archive/html/acl-devel/2019-03/msg00001.html There has been no feedback from upstream in the last 3 months. I have pushed the patches to Fedora rawhide: https://src.fedoraproject.org/rpms/attr/c/63e7de99