ClientRuntimeLoader: client assemblies must resolve under a trusted root

The reload pointer, and the initial --client-assembly, named any path and ran
whatever it held in the engine process. Reload now refuses relative and UNC
paths and anything that, links followed, lies outside the trusted root
(--client-trusted-root or AQUARIUM_CLIENT_TRUSTED_ROOT; default: the directory
of the initial assembly). dev-reload passes its slot directory as the root.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Aqua 2026-11-07 10:45:23 +00:00
commit d44666ec69
5 changed files with 177 additions and 4 deletions

View file

@ -195,7 +195,8 @@ function Start-AquariumProcess {
"--cache", $cultCachePath,
"--shader-source", (Join-Path $SlotPath "Render\Shaders\D3D12HeightField.hlsl"),
"--client-assembly", $LiveAssemblyPath,
"--client-reload-pointer", $liveReloadPointerPath
"--client-reload-pointer", $liveReloadPointerPath,
"--client-trusted-root", $slotRoot
)
if ($RunHeadless) {
$arguments += "--headless"