Commit d6815f0
fix(ocap-kernel): harden makeAllowedGlobals output in VatSupervisor
Defense-in-depth restoration of the harden() call the pre-snaps
constructor used to apply to `allowedGlobals`. `createDefaultEndowments`
already hardens its output, but `makeAllowedGlobals` is a public seam
(see the exported `VatEndowments` type) — a custom factory returning
unhardened globals would hand a vat mutable references to its own
endowments, defeating attenuation. `harden` is idempotent and deep, so
this is a no-op on the default path.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 1620287 commit d6815f0
2 files changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
| 159 | + | |
159 | 160 | | |
160 | 161 | | |
161 | 162 | | |
| |||
0 commit comments