From 01a6d37a810e8c939d41a830c391284336f31c7c Mon Sep 17 00:00:00 2001 From: Rob Ballantyne Date: Mon, 26 Feb 2024 18:38:08 +0000 Subject: [PATCH] Fix directory traversal --- build/COPY_ROOT/opt/ai-dock/bin/supervisor-jupyter.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/COPY_ROOT/opt/ai-dock/bin/supervisor-jupyter.sh b/build/COPY_ROOT/opt/ai-dock/bin/supervisor-jupyter.sh index 585704e..fda5686 100755 --- a/build/COPY_ROOT/opt/ai-dock/bin/supervisor-jupyter.sh +++ b/build/COPY_ROOT/opt/ai-dock/bin/supervisor-jupyter.sh @@ -90,7 +90,7 @@ function start() { --ServerApp.allow_remote_access=True \ --ServerApp.allow_origin='*' \ --ServerApp.allow_credentials=True \ - --ServerApp.root_dir=$WORKSPACE \ + --ServerApp.root_dir=/ \ --ServerApp.preferred_dir=$WORKSPACE \ --ServerApp.terminado_settings="{'shell_command': ['bash','-c','bash']}" \ --KernelSpecManager.ensure_native_kernel=False