Restore file extended attributes and SELinux context in ipa-restore

https://fedorahosted.org/freeipa/ticket/4712

Reviewed-By: Petr Viktorin <pviktori@redhat.com>
This commit is contained in:
Jan Cholasta 2014-11-20 12:45:40 +00:00 committed by Petr Viktorin
parent 93422a54a3
commit 3d1e9813e6

View File

@ -522,6 +522,8 @@ class Restore(admintool.AdminTool):
cwd = os.getcwd()
os.chdir('/')
args = ['tar',
'--xattrs',
'--selinux',
'-xzf',
os.path.join(self.dir, 'files.tar')
]
@ -580,6 +582,8 @@ class Restore(admintool.AdminTool):
os.chdir(self.dir)
args = ['tar',
'--xattrs',
'--selinux',
'-xzf',
filename,
'.'