Blame SOURCES/0040-Restore-file-extended-attributes-and-SELinux-context.patch
|
|
e3ffab |
From 387a4fb2430639f3d87ee1d310997576ddfd9246 Mon Sep 17 00:00:00 2001
|
|
|
e3ffab |
From: Jan Cholasta <jcholast@redhat.com>
|
|
|
e3ffab |
Date: Thu, 20 Nov 2014 12:45:40 +0000
|
|
|
e3ffab |
Subject: [PATCH] Restore file extended attributes and SELinux context in
|
|
|
e3ffab |
ipa-restore
|
|
|
e3ffab |
|
|
|
e3ffab |
https://fedorahosted.org/freeipa/ticket/4712
|
|
|
e3ffab |
|
|
|
e3ffab |
Reviewed-By: Petr Viktorin <pviktori@redhat.com>
|
|
|
e3ffab |
---
|
|
|
e3ffab |
ipaserver/install/ipa_restore.py | 4 ++++
|
|
|
e3ffab |
1 file changed, 4 insertions(+)
|
|
|
e3ffab |
|
|
|
e3ffab |
diff --git a/ipaserver/install/ipa_restore.py b/ipaserver/install/ipa_restore.py
|
|
|
e3ffab |
index 8b1e80f5ed5e140ccb17ea0b63d92b6049507b74..7b92ab5d490a7a254b1ea307d5031da002b9f653 100644
|
|
|
e3ffab |
--- a/ipaserver/install/ipa_restore.py
|
|
|
e3ffab |
+++ b/ipaserver/install/ipa_restore.py
|
|
|
e3ffab |
@@ -523,6 +523,8 @@ class Restore(admintool.AdminTool):
|
|
|
e3ffab |
cwd = os.getcwd()
|
|
|
e3ffab |
os.chdir('/')
|
|
|
e3ffab |
args = ['tar',
|
|
|
e3ffab |
+ '--xattrs',
|
|
|
e3ffab |
+ '--selinux',
|
|
|
e3ffab |
'-xzf',
|
|
|
e3ffab |
os.path.join(self.dir, 'files.tar')
|
|
|
e3ffab |
]
|
|
|
e3ffab |
@@ -581,6 +583,8 @@ class Restore(admintool.AdminTool):
|
|
|
e3ffab |
os.chdir(self.dir)
|
|
|
e3ffab |
|
|
|
e3ffab |
args = ['tar',
|
|
|
e3ffab |
+ '--xattrs',
|
|
|
e3ffab |
+ '--selinux',
|
|
|
e3ffab |
'-xzf',
|
|
|
e3ffab |
filename,
|
|
|
e3ffab |
'.'
|
|
|
e3ffab |
--
|
|
|
e3ffab |
2.1.0
|
|
|
e3ffab |
|