mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Added file permissions option to IPAChangeConf.newConf()
Also added information about why os.chmod is called sometimes after newConf() calls. https://fedorahosted.org/freeipa/ticket/6392 Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
committed by
Jan Cholasta
parent
990e1acb1a
commit
b068d3336a
@@ -264,7 +264,9 @@ def create_ipa_conf(fstore, config, ca_enabled):
|
||||
{'name': 'empty', 'type': 'empty'}
|
||||
]
|
||||
ipaconf.newConf(target_fname, opts)
|
||||
os.chmod(target_fname, 0o644) # must be readable for httpd
|
||||
# the new file must be readable for httpd
|
||||
# Also, umask applies when creating a new file but we want 0o644 here
|
||||
os.chmod(target_fname, 0o644)
|
||||
|
||||
|
||||
def check_dirsrv():
|
||||
|
Reference in New Issue
Block a user