Skip to content

Commit

Permalink
fix(bash): allow process substitution on nsjail
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenfiszel committed Feb 18, 2025
1 parent 138cedf commit d4f61f1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
14 changes: 14 additions & 0 deletions backend/windmill-worker/nsjail/run.bash.config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,24 @@ mount {
is_bind: true
}

mount {
src: "/proc/self/fd"
dst: "/dev/fd"
is_symlink: true
mandatory: false
}

mount {
src: "/bin"
dst: "/bin"
is_bind: true
}

mount {
src: "/opt/microsoft"
dst: "/opt/microsoft"
is_bind: true
mandatory: false
}

mount {
Expand Down
7 changes: 7 additions & 0 deletions backend/windmill-worker/nsjail/run.powershell.config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ mount {
is_bind: true
}

mount {
src: "/proc/self/fd"
dst: "/dev/fd"
is_symlink: true
mandatory: false
}

mount {
src: "/opt/microsoft"
dst: "/opt/microsoft"
Expand Down

0 comments on commit d4f61f1

Please sign in to comment.