alephsecurity / xnu-qemu-arm64

Other
1.36k stars 122 forks source link

Add ability to use a non-Ramdisk disk mount #3

Closed jonyafek closed 4 years ago

jonyafek commented 4 years ago

Description

We want the kernel to have a filesystem mounted on the root mount that is not backed by a Ramdisk without patching the kernel.

There are several methods to explore. The leading one we are currently thinking about is to create a new fake block device backed by a QEMU device in the kernel by executing our own arbitrary kernel code that does it ( #2 ). After the block device is available we will load it with the relevant filesystem and remount the root mount on it.