Blame SOURCES/0003-attr-2.4.48-xattr-conf-nfs4-acls.patch

9c8671
From 5c04ee88bc3a8fe4bde91d488d74bbadb836a5e6 Mon Sep 17 00:00:00 2001
9c8671
From: Kamil Dudka <kdudka@redhat.com>
9c8671
Date: Mon, 4 Mar 2019 16:13:42 +0100
9c8671
Subject: [PATCH 1/2] xattr.conf: document how libattr itself uses the file
9c8671
9c8671
Otherwise users could think that only entries with the `skip` action
9c8671
are excluded by libattr functions attr_copy_file() and attr_copy_fd()
9c8671
by default.
9c8671
---
9c8671
 xattr.conf | 4 ++++
9c8671
 1 file changed, 4 insertions(+)
9c8671
9c8671
diff --git a/xattr.conf b/xattr.conf
9c8671
index dcbc12c..7361fbd 100644
9c8671
--- a/xattr.conf
9c8671
+++ b/xattr.conf
9c8671
@@ -6,6 +6,10 @@
9c8671
 # Actions:
9c8671
 #   permissions - copy when trying to preserve permissions.
9c8671
 #   skip - do not copy.
9c8671
+#
9c8671
+# Note that libattr functions attr_copy_file() and attr_copy_fd() by default
9c8671
+# skip all extended attributes that are matched by any of the below patterns,
9c8671
+# regardless of the specified action.
9c8671
 
9c8671
 system.nfs4_acl			permissions
9c8671
 system.nfs4acl			permissions
9c8671
-- 
9c8671
2.20.1
9c8671
9c8671
9c8671
From 951fbb74d402a96619b6b9ee894d272650ec7100 Mon Sep 17 00:00:00 2001
9c8671
From: Kamil Dudka <kdudka@redhat.com>
9c8671
Date: Mon, 4 Mar 2019 16:21:52 +0100
9c8671
Subject: [PATCH 2/2] xattr.conf: remove entries for NFSv4 ACLs namespaces
9c8671
9c8671
... in order to make it possible to copy NFSv4 ACLs by GNU coreutils'
9c8671
implementation of cp(1).  There is no way to make GNU coreutils copy
9c8671
extended attributes that are matched by any entry from /etc/xattr.conf.
9c8671
9c8671
GNU coreutils upstream says that NFS-related entries should be removed
9c8671
from the default /etc/xattr.conf to make copying of NFSv4 ACLs work:
9c8671
9c8671
http://lists.gnu.org/archive/html/bug-coreutils/2019-03/msg00008.html
9c8671
---
9c8671
 xattr.conf | 2 --
9c8671
 1 file changed, 2 deletions(-)
9c8671
9c8671
diff --git a/xattr.conf b/xattr.conf
9c8671
index 7361fbd..1ac5b2f 100644
9c8671
--- a/xattr.conf
9c8671
+++ b/xattr.conf
9c8671
@@ -11,8 +11,6 @@
9c8671
 # skip all extended attributes that are matched by any of the below patterns,
9c8671
 # regardless of the specified action.
9c8671
 
9c8671
-system.nfs4_acl			permissions
9c8671
-system.nfs4acl			permissions
9c8671
 system.posix_acl_access		permissions
9c8671
 system.posix_acl_default	permissions
9c8671
 trusted.SGI_ACL_DEFAULT		skip		# xfs specific
9c8671
-- 
9c8671
2.20.1
9c8671