Skip to content

Commit

Permalink
Workspace: Mount as_user home read-only
Browse files Browse the repository at this point in the history
  • Loading branch information
ConnorNelson committed Sep 8, 2024
1 parent 6936959 commit b06852c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dojo_plugin/api/v1/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def start_challenge(user, dojo_challenge, practice, *, as_user=None):
docker_client = user_docker_client(user)
remove_container(docker_client, user)

mounts = [("/home/hacker", HOST_HOMES_MOUNTS / str(as_user.id)), None]
mounts = [("/home/hacker", HOST_HOMES_MOUNTS / str(as_user.id), None)]
if as_user != user:
mounts = [
# ("/home/hacker", HOST_HOMES_OVERLAYS / f"{user.id}-{as_user.id}"),
Expand Down

0 comments on commit b06852c

Please sign in to comment.