Blob Blame Raw
From 78fd043ba4378c7db84288c76911a57d4d5ff848 Mon Sep 17 00:00:00 2001
From: Andreas Gruenbacher <agruen@linbit.com>
Date: Mon, 18 Nov 2013 22:11:44 +0100
Subject: [PATCH] Add a default /etc/xattr.conf file

[upstream commit fe92f96a4d8b017b73d1eb262d4ea3be5e9d48df]

Signed-off-by: Kamil Dudka <kdudka@redhat.com>
---
 Makefile             |    4 ++++
 include/builddefs.in |    1 +
 xattr.conf           |   20 ++++++++++++++++++++
 3 files changed, 25 insertions(+), 0 deletions(-)
 create mode 100644 xattr.conf

diff --git a/Makefile b/Makefile
index 4443fe0..f94f457 100644
--- a/Makefile
+++ b/Makefile
@@ -28,6 +28,8 @@ CONFIGURE = \
 	configure config.guess config.sub \
 	ltmain.sh m4/libtool.m4 m4/ltoptions.m4 m4/ltsugar.m4 \
 	m4/ltversion.m4 m4/lt~obsolete.m4
+SRCFILES = \
+	xattr.conf
 LSRCFILES = \
 	configure.in Makepkgs install-sh exports README VERSION \
 	$(CONFIGURE)
@@ -92,6 +94,8 @@ include/config.h: include/builddefs
 install: default $(addsuffix -install,$(SUBDIRS))
 	$(INSTALL) -m 755 -d $(PKG_DOC_DIR)
 	$(INSTALL) -m 644 README $(PKG_DOC_DIR)
+	$(INSTALL) -m 755 -d $(PKG_CONF_DIR)
+	$(INSTALL) -m 644 xattr.conf $(PKG_CONF_DIR)
 
 install-dev: default $(addsuffix -install-dev,$(SUBDIRS))
 
diff --git a/include/builddefs.in b/include/builddefs.in
index d9931db..f888d25 100644
--- a/include/builddefs.in
+++ b/include/builddefs.in
@@ -48,6 +48,7 @@ PKG_INC_DIR	= @includedir@/attr
 PKG_MAN_DIR	= @mandir@
 PKG_DOC_DIR	= @datadir@/doc/@pkg_name@
 PKG_LOCALE_DIR	= @datadir@/locale
+PKG_CONF_DIR	= @sysconfdir@
 
 CC		= @cc@
 AWK		= @awk@
diff --git a/xattr.conf b/xattr.conf
new file mode 100644
index 0000000..e1f2215
--- /dev/null
+++ b/xattr.conf
@@ -0,0 +1,20 @@
+# /etc/xattr.conf
+#
+# Format:
+# <pattern> <action>
+#
+# Actions:
+#   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
+trusted.SGI_ACL_FILE		skip		# xfs specific
+trusted.SGI_CAP_FILE		skip		# xfs specific
+trusted.SGI_DMI_*		skip		# xfs specific
+trusted.SGI_MAC_FILE		skip		# xfs specific
+xfsroot.*			skip		# xfs specific; obsolete
+user.Beagle.*			skip		# ignore Beagle index data
-- 
1.7.1