[tar] store&restore security.capability extended attributes category(#771927)
Ondrej Vasik
ovasik at fedoraproject.org
Sat Jun 16 05:44:13 UTC 2012
commit 2c5c29cde2810ebc58a3536ea561a659f8f1ebf7
Author: Ondřej Vašík <ovasik at redhat.com>
Date: Sat Jun 16 07:44:10 2012 +0200
store&restore security.capability extended attributes category(#771927)
tar-1.24-xattrs.patch | 8 +++++---
tar.spec | 6 +++++-
2 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/tar-1.24-xattrs.patch b/tar-1.24-xattrs.patch
index e91baa7..7140556 100644
--- a/tar-1.24-xattrs.patch
+++ b/tar-1.24-xattrs.patch
@@ -806,7 +806,7 @@ diff -urNp tar-1.24-orig/src/tar.h tar-1.24/src/tar.h
diff -urNp tar-1.24-orig/src/xattrs.c tar-1.24/src/xattrs.c
--- tar-1.24-orig/src/xattrs.c 1970-01-01 01:00:00.000000000 +0100
+++ tar-1.24/src/xattrs.c 2010-10-25 10:24:52.568214736 +0200
-@@ -0,0 +1,489 @@
+@@ -0,0 +1,490 @@
+/* Create a tar archive.
+
+ Copyright (C) 2006 Free Software Foundation, Inc.
@@ -1284,7 +1284,8 @@ diff -urNp tar-1.24-orig/src/xattrs.c tar-1.24/src/xattrs.c
+ if (strncmp (keyword, "user.", strlen("user.")) &&
+ strncmp (keyword, "lustre.", strlen("lustre.")) &&
+ strncmp (keyword, "trusted.", strlen("trusted.")) &&
-+ strncmp (keyword, "security.NTACL", strlen("security.NTACL")))
++ strncmp (keyword, "security.NTACL", strlen("security.NTACL")) &&
++ strncmp (keyword, "security.capability", strlen("security.capability")))
+ continue; /* don't try and set anything but normal xattrs */
+
+ xattrs__fd_set (st, file_name, typeflag, keyword,
@@ -1587,7 +1588,7 @@ diff -urNp tar-1.24-orig/src/xheader.c tar-1.24/src/xheader.c
/* These may be present in a first global header of the archive.
They provide the same functionality as GNUTYPE_MULTIVOL header.
-@@ -1561,11 +1704,41 @@ struct xhdr_tab const xhdr_tab[] = {
+@@ -1561,11 +1704,42 @@ struct xhdr_tab const xhdr_tab[] = {
GNU.volume.offset keeps the offset of the start of this volume,
otherwise kept in oldgnu_header.offset. */
{ "GNU.volume.filename", volume_label_coder, volume_filename_decoder,
@@ -1628,6 +1629,7 @@ diff -urNp tar-1.24-orig/src/xheader.c tar-1.24/src/xheader.c
+ { "SCHILY.xattr.trusted", xattr_coder, xattr_decoder, 0, true },
+ { "SCHILY.xattr.lustre", xattr_coder, xattr_decoder, 0, true },
+ { "SCHILY.xattr.security.NTACL", xattr_coder, xattr_decoder, 0, true },
++ { "SCHILY.xattr.security.capability", xattr_coder, xattr_decoder, 0, true },
+
+ /* ignore everything else in the xattr namespaces... */
+ { "SCHILY.xattr", dummy_coder, dummy_decoder, 0, true },
diff --git a/tar.spec b/tar.spec
index b43c466..2e25c95 100644
--- a/tar.spec
+++ b/tar.spec
@@ -5,7 +5,7 @@ Summary: A GNU file archiving program
Name: tar
Epoch: 2
Version: 1.26
-Release: 6%{?dist}
+Release: 7%{?dist}
License: GPLv3+
Group: Applications/Archiving
URL: http://www.gnu.org/software/tar/
@@ -127,6 +127,10 @@ fi
%{_infodir}/tar.info*
%changelog
+* Sat Jun 16 2012 Ondrej Vasik <ovasik at redhat.com> 2:1.26-7
+- store&restore security.capability extended attributes category
+ (#771927)
+
* Tue May 15 2012 Ondrej Vasik <ovasik at redhat.com> 2:1.26-6
- add virtual provides for bundled(gnulib) copylib (#821790)
More information about the scm-commits
mailing list