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