aa6c36
From 78fd043ba4378c7db84288c76911a57d4d5ff848 Mon Sep 17 00:00:00 2001
aa6c36
From: Andreas Gruenbacher <agruen@linbit.com>
aa6c36
Date: Mon, 18 Nov 2013 22:11:44 +0100
aa6c36
Subject: [PATCH] Add a default /etc/xattr.conf file
aa6c36
aa6c36
[upstream commit fe92f96a4d8b017b73d1eb262d4ea3be5e9d48df]
aa6c36
aa6c36
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
aa6c36
---
aa6c36
 Makefile             |    4 ++++
aa6c36
 include/builddefs.in |    1 +
aa6c36
 xattr.conf           |   20 ++++++++++++++++++++
aa6c36
 3 files changed, 25 insertions(+), 0 deletions(-)
aa6c36
 create mode 100644 xattr.conf
aa6c36
aa6c36
diff --git a/Makefile b/Makefile
aa6c36
index 4443fe0..f94f457 100644
aa6c36
--- a/Makefile
aa6c36
+++ b/Makefile
aa6c36
@@ -28,6 +28,8 @@ CONFIGURE = \
aa6c36
 	configure config.guess config.sub \
aa6c36
 	ltmain.sh m4/libtool.m4 m4/ltoptions.m4 m4/ltsugar.m4 \
aa6c36
 	m4/ltversion.m4 m4/lt~obsolete.m4
aa6c36
+SRCFILES = \
aa6c36
+	xattr.conf
aa6c36
 LSRCFILES = \
aa6c36
 	configure.in Makepkgs install-sh exports README VERSION \
aa6c36
 	$(CONFIGURE)
aa6c36
@@ -92,6 +94,8 @@ include/config.h: include/builddefs
aa6c36
 install: default $(addsuffix -install,$(SUBDIRS))
aa6c36
 	$(INSTALL) -m 755 -d $(PKG_DOC_DIR)
aa6c36
 	$(INSTALL) -m 644 README $(PKG_DOC_DIR)
aa6c36
+	$(INSTALL) -m 755 -d $(PKG_CONF_DIR)
aa6c36
+	$(INSTALL) -m 644 xattr.conf $(PKG_CONF_DIR)
aa6c36
 
aa6c36
 install-dev: default $(addsuffix -install-dev,$(SUBDIRS))
aa6c36
 
aa6c36
diff --git a/include/builddefs.in b/include/builddefs.in
aa6c36
index d9931db..f888d25 100644
aa6c36
--- a/include/builddefs.in
aa6c36
+++ b/include/builddefs.in
aa6c36
@@ -48,6 +48,7 @@ PKG_INC_DIR	= @includedir@/attr
aa6c36
 PKG_MAN_DIR	= @mandir@
aa6c36
 PKG_DOC_DIR	= @datadir@/doc/@pkg_name@
aa6c36
 PKG_LOCALE_DIR	= @datadir@/locale
aa6c36
+PKG_CONF_DIR	= @sysconfdir@
aa6c36
 
aa6c36
 CC		= @cc@
aa6c36
 AWK		= @awk@
aa6c36
diff --git a/xattr.conf b/xattr.conf
aa6c36
new file mode 100644
aa6c36
index 0000000..e1f2215
aa6c36
--- /dev/null
aa6c36
+++ b/xattr.conf
aa6c36
@@ -0,0 +1,20 @@
aa6c36
+# /etc/xattr.conf
aa6c36
+#
aa6c36
+# Format:
aa6c36
+# <pattern> <action>
aa6c36
+#
aa6c36
+# Actions:
aa6c36
+#   permissions - copy when trying to preserve permissions.
aa6c36
+#   skip - do not copy.
aa6c36
+
aa6c36
+system.nfs4_acl			permissions
aa6c36
+system.nfs4acl			permissions
aa6c36
+system.posix_acl_access		permissions
aa6c36
+system.posix_acl_default	permissions
aa6c36
+trusted.SGI_ACL_DEFAULT		skip		# xfs specific
aa6c36
+trusted.SGI_ACL_FILE		skip		# xfs specific
aa6c36
+trusted.SGI_CAP_FILE		skip		# xfs specific
aa6c36
+trusted.SGI_DMI_*		skip		# xfs specific
aa6c36
+trusted.SGI_MAC_FILE		skip		# xfs specific
aa6c36
+xfsroot.*			skip		# xfs specific; obsolete
aa6c36
+user.Beagle.*			skip		# ignore Beagle index data
aa6c36
-- 
aa6c36
1.7.1
aa6c36