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:
parent
9008a2fb7f
commit
37c949e83b
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ class Daemon:
|
|||
# decouple from parent environment
|
||||
os.chdir('/')
|
||||
os.setsid()
|
||||
os.umask(0)
|
||||
os.umask(022)
|
||||
|
||||
# do second fork
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in a new issue