On arm64 macOS 27, FileVault's unlock screen was never drawn. IOGPU loads a
GPU bundle only from a trusted path, and libsystem_sandbox asks the Sandbox
policy, through mac_syscall(2) call 2, whether writing the bundle's path is
rootless protected for the storage class KernelExtensionManagement. 14, 15
and 26 answer yes for the tagged bundle on the BaseSystem's tmpfs Data
volume; 27 answers no, so WindowServer found no Metal device and aborted
every 30 s.
RgfxGate's arm64e build now routes the Sandbox policy's policy_syscall
through Graft 0.4.0, in a route call of its own so the earlier routes stand
if it is refused. While the root is the BaseSystem, the hook answers yes for
exactly that query (call 2, a path subject, file-write-data,
KernelExtensionManagement, a path under
/Library/GPUBundles/reims-graphics.bundle) and passes every other call, and
every call on a full system, to the Sandbox policy's own handler. A failed
copy in or out passes the call on. The classifier is unit-tested in
match_test.
What the guest sees: on arm64 macOS 27, the FileVault unlock screen draws on
our Metal device and the password unlocks it. On 14, 15 and 26, which already
answer yes, the answer is unchanged. x86-64's RgfxGate is unchanged: the new
code is arm64e only.