talloc_strackframe.h and memory.h (#1678670) - Fix CA setup when fs.protected_regular=1 (#1677027)
23 lines
834 B
Diff
23 lines
834 B
Diff
diff --git a/ipaserver/install/cainstance.py b/ipaserver/install/cainstance.py
|
|
index 48479f30c..01c166a86 100644
|
|
--- a/ipaserver/install/cainstance.py
|
|
+++ b/ipaserver/install/cainstance.py
|
|
@@ -483,7 +483,6 @@ class CAInstance(DogtagInstance):
|
|
(cfg_fd, cfg_file) = tempfile.mkstemp()
|
|
os.close(cfg_fd)
|
|
pent = pwd.getpwnam(self.service_user)
|
|
- os.chown(cfg_file, pent.pw_uid, pent.pw_gid)
|
|
|
|
# Create CA configuration
|
|
config = RawConfigParser()
|
|
@@ -647,6 +646,9 @@ class CAInstance(DogtagInstance):
|
|
with open(cfg_file, "w") as f:
|
|
config.write(f)
|
|
|
|
+ # Finally chown the config file (rhbz#1677027)
|
|
+ os.chown(cfg_file, pent.pw_uid, pent.pw_gid)
|
|
+
|
|
self.backup_state('installed', True)
|
|
try:
|
|
DogtagInstance.spawn_instance(
|