Files
reims-vgpu/docs/graphics-kext
Anees Iqbal 8c6386f0b9 🐛 Place the Metal bundle under /System, linked from GPUBundles
A sandbox profile built on the system's base profile lets its process read
under /System, and /Library/GPUBundles only where it also takes the system's
graphics rules. Sandboxed processes without them were refused our bundle's
files and found no Metal device on our GPU, where on a real Mac they have
one: on arm64 the 3D-preview service, on x86 and arm64 the attributed-string
agent, and other agents.

On a full system RgfxGate now moves the installed tree to
/System/Library/Caches/ai.aneesiqbal.reims-graphics, a Data-volume directory
whose path is under /System, tags it like the bundle, and makes
/Library/GPUBundles/reims-graphics.bundle a tagged symbolic link to it, below
the MAC layer like the install's other writes. The signature pin and the
install writes take the placed directory too. An install or update removes
the link and the placed tree, writes the whole tree at the link's path as
before, and places it again; a pass that finds the link only tags it again.
Base systems keep the tree in /Library/GPUBundles.

For the guest: Metal follows the link and maps the executable by the placed
path, IOGPU trusts it there, and no process is refused a read of either path.
Walks with the placement (m3-max-82522, -82508, -82615), each on its first
boot and, on x86, again after the guest's own restart: arm64 27.0.1; x86
11.7.11, 12.7.6, 13.7.8 and 26.7.2. Every release we keep reads /System in its
base sandbox profile (read from the guests' files: arm64 13.6 to 27.0.1, x86
11.7.11 to 26.7.3). On arm64 the 3D-preview service then reaches the open of
our user client, which its profile still refuses.
2026-12-03 00:55:26 -08:00
..