Currently, octoprint gives write access to all files in its data

directory to everybody.

This was probably considered appropriate for the case of octoprint
running on a single-user device, but given that Unix has groups
support, it is not necessary, and can be very harmful.
This commit is contained in:
Tonnerre LOMBARD 2013-10-27 02:32:14 +02:00
parent 9008a2fb7f
commit 37c949e83b

View file

@ -28,7 +28,7 @@ class Daemon:
# decouple from parent environment
os.chdir('/')
os.setsid()
os.umask(0)
os.umask(022)
# do second fork
try: