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