Commit 20bbd45
feat(core): harden Linux bwrap sandbox (--new-session, --die-with-parent) (#110)
The bwrap profile was missing two standard hardening flags:
- --new-session: fresh session so the sandboxed process can't TIOCSTI-inject
keystrokes into the controlling terminal (a known sandbox escape).
- --die-with-parent: kill the sandbox when the agent exits (no orphans).
Also corrected the stale "skeleton" header — the Linux path is complete except
the selective-domain net allowlist (needs a slirp4netns helper; deny-all and
full-net modes work). +1 test.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 61cd820 commit 20bbd45
2 files changed
Lines changed: 19 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
103 | 109 | | |
104 | 110 | | |
105 | 111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
| |||
188 | 192 | | |
189 | 193 | | |
190 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
191 | 202 | | |
192 | 203 | | |
0 commit comments