Commit fffb8f4
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 fffb8f4
1 file changed
Lines changed: 2 additions & 1 deletion
| 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