Skip to content

Commit fea5b1f

Browse files
committed
create debugger tmp directory with 0o700 permissions
1 parent 821f6c0 commit fea5b1f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ipykernel/debugger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ def start(self):
426426
if not self.debugpy_initialized:
427427
tmp_dir = get_tmp_directory()
428428
if not Path(tmp_dir).exists():
429-
Path(tmp_dir).mkdir(parents=True)
429+
Path(tmp_dir).mkdir(mode=0o700, parents=True)
430430
host, port = self.debugpy_client.get_host_port()
431431
code = "import debugpy;"
432432
code += 'debugpy.listen(("' + host + '",' + port + "))"

0 commit comments

Comments
 (0)