Make default renewal file permissions more strict (#3891)

This commit is contained in:
Joona Hoikkala 2016-12-10 21:19:20 +02:00 committed by Peter Eckersley
parent 22e0f5779a
commit e9f040e209

View file

@ -181,7 +181,7 @@ def unique_file(path, chmod=0o777, mode="w"):
count=0, chmod=chmod, mode=mode)
def unique_lineage_name(path, filename, chmod=0o777, mode="w"):
def unique_lineage_name(path, filename, chmod=0o644, mode="w"):
"""Safely finds a unique file using lineage convention.
:param str path: directory path