make sure .filter are 0600

This commit is contained in:
2021-12-23 14:57:52 +01:00
parent 57de8f47d0
commit 701da16aaf

View File

@@ -103,6 +103,9 @@ def get_filterfile(user):
with open(filepath, "w", encoding="utf-8") as filterfile:
filterfile.write(filterconfig)
# Change permissions to 0600
os.chmod(filepath, 0o600)
return filepath