Repository navigation
Commit 1274d6e
fix(sandbox): create skills dirs before first container launch
When a new agent workspace has no skills or .agents/skills
directories, the read-only mount instructions are silently
skipped. This creates a first-write vulnerability window where
the agent can freely create executable scripts before the
protective ro mount is applied on restart.
Create both directories eagerly during workspace initialization
so the Docker ro mount lock always applies from the first
container launch.
Fixes #94425
Co-Authored-By: Claude <[email protected]>1 parent f8f2006 commit 1274d6e
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
874 | 874 | | |
875 | 875 | | |
876 | 876 | | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
877 | 882 | | |
878 | 883 | | |
879 | 884 | | |
| |||
0 commit comments