mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-12 17:21:55 -06:00
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:
parent
93422a54a3
commit
3d1e9813e6
@ -522,6 +522,8 @@ class Restore(admintool.AdminTool):
|
|||||||
cwd = os.getcwd()
|
cwd = os.getcwd()
|
||||||
os.chdir('/')
|
os.chdir('/')
|
||||||
args = ['tar',
|
args = ['tar',
|
||||||
|
'--xattrs',
|
||||||
|
'--selinux',
|
||||||
'-xzf',
|
'-xzf',
|
||||||
os.path.join(self.dir, 'files.tar')
|
os.path.join(self.dir, 'files.tar')
|
||||||
]
|
]
|
||||||
@ -580,6 +582,8 @@ class Restore(admintool.AdminTool):
|
|||||||
os.chdir(self.dir)
|
os.chdir(self.dir)
|
||||||
|
|
||||||
args = ['tar',
|
args = ['tar',
|
||||||
|
'--xattrs',
|
||||||
|
'--selinux',
|
||||||
'-xzf',
|
'-xzf',
|
||||||
filename,
|
filename,
|
||||||
'.'
|
'.'
|
||||||
|
Loading…
Reference in New Issue
Block a user