An a redhat box I have root, apache and other normal users run code
that uses the logging module to write to the same log file. Since
umasks are set to 2 or 022 this gets permission errors.
I have fixed my issue by patching the logging code everywhere there is
an open for write with:
try:
old_umask = os.umask(0)
# open for write here
finally:
os.umask(old_umask)
Is there a better way to solve this issue?
Are there any security problems with this solution other than the log
file not being protected?
--
http://mail.python.org/mailman/listinfo/python-list