summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@linbit.com>2013-11-18 22:11:44 +0100
committerAndreas Gruenbacher <agruen@linbit.com>2013-11-18 22:11:44 +0100
commitfe92f96a4d8b017b73d1eb262d4ea3be5e9d48df (patch)
treec58d11b90d6435a769629ad1ab9a7861bdc9ffb5
parent216e7f8b6efb79dd05f47714ae22c4a93f8f6a85 (diff)
downloadattr-fe92f96a4d8b017b73d1eb262d4ea3be5e9d48df.tar.gz
Add a default /etc/xattr.conf file
-rw-r--r--Makefile4
-rw-r--r--include/builddefs.in1
-rw-r--r--xattr.conf20
3 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e9178cf..df833cb 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.ac 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