Commit 17a74a0f authored by root's avatar root
Browse files

dropping privilages when saving the file

parent eee5e9d3
......@@ -58,6 +58,7 @@ def merge_and_out(job_id, aggr, rcm, type, cache, out_dir=None):
print(jsonstr)
else:
filename = "{:s}/{:s}.{:s}.json".format(out_dir, job_id, type)
os.seteuid(os.getuid())
with open(filename, 'w') as outfile:
outfile.write(jsonstr)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment