mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipa-restore: Restore ownership and perms on 389-ds log directory
Previously it would end up being owned by root:root mode 0755 instead of dirsrv:dirsrv mode 0770. https://pagure.io/freeipa/issue/7725 Signed-off-by: Rob Crittenden <rcritten@redhat.com> Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
This commit is contained in:
@@ -631,6 +631,10 @@ class Restore(admintool.AdminTool):
|
|||||||
os.makedirs(template_dir)
|
os.makedirs(template_dir)
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
os.chown(template_dir, pent.pw_uid, pent.pw_gid)
|
||||||
|
os.chmod(template_dir, 0o770)
|
||||||
|
|
||||||
# Restore SELinux context of template_dir
|
# Restore SELinux context of template_dir
|
||||||
tasks.restore_context(template_dir)
|
tasks.restore_context(template_dir)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user