XNU as a loadable kernel module inside Linux (macOS personality for arm64 Linux)
C
Commits on main
System disk: /etc/passwd and /etc/group (generic root/daemon/nobody, wheel/daemon/staff)
c4c4b27 Heyang Zhou committed 8 days ago
README: launchd jobs, interactive console, core daemons status
a342649 Heyang Zhou committed 8 days ago
fsck.hfsplus the system disk before each boot and before editing it (a hosted XNU never unmounts its rw root; a dirty volume failed to mount)
f3c37b1 Heyang Zhou committed 8 days ago
System disk: a minimal dslocal Default node (root, daemon, wheel) for opendirectoryd, which panics the system without /Local/Default
743edbd Heyang Zhou committed 8 days ago
XNU patch: a hosted root mounts read-write (no boot task remounts it; logd trapped on EROFS)
2f09507 Heyang Zhou committed 8 days ago
Debug: posix_spawn paths logged like execve's (xpcproxy starts daemons with posix_spawn)
d11a043 Heyang Zhou committed 8 days ago
xnu.ko console: 1000-byte lines; only a prompt-looking partial line is flushed early (others were split at write boundaries)
b0259e5 Heyang Zhou committed 8 days ago
scripts/xnu-console.sh: an interactive terminal on XNU's console from the Mac host
e7017c5 Heyang Zhou committed 8 days ago
vm-sysdisk-launchd: KEEP= puts chosen Apple daemons back (binaries from daemons.tar)
3b3b316 Heyang Zhou committed 8 days ago
xnu.ko: console output without a trailing newline (a prompt) is shown at the end of the write
33f24d0 Heyang Zhou committed 8 days ago
System disk: xnulinux.shell, an interactive bash on /dev/console run by launchd
88ee4d3 Heyang Zhou committed 8 days ago
Console input: hosted XNU's serial keyboard thread polls the host (stage 993); xnu.ko console_in= (bytes appended to a host file are typed into /dev/console)
5d58cd5 Heyang Zhou committed 8 days ago
README: M3 status (shell, launchd as PID 1, hosted stand-ins)
720aa08 Heyang Zhou committed 8 days ago
XNU EL0 tracing behind boot-arg linux64_trace=1 (execve paths always); system disk: a launchd job of ours (xnulinux.hello: sh echo/uname/sleep loop to the console), Apple's daemon plists set aside
039ea28 Heyang Zhou committed 8 days ago
XNU patch: the stand-in IOAESAccelerator's AES entry (vtable +0x890, AppleImage4's encrypt call) is a hosted copy operation, written into the family's vtable with its PAC signature
97d4422 Heyang Zhou committed 8 days ago
XNU patch: the IOAESAccelerator stand-in is an instance of IOCryptoAcceleratorFamily's own class (defining one in the kernel made the family's a duplicate)
de54286 Heyang Zhou committed 8 days ago
XNU patch: hosted stand-in IOAESAccelerator service (AppleImage4's finalize waits for one; libignition's Image4 blob sysctl waits on that gate)
2466743 Heyang Zhou committed 8 days ago
XNU patch: the stand-in sep-endpoint,scrd is registered with the AKS stand-in (this platform is not IOPanicPlatform's)
275481e Heyang Zhou committed 8 days ago
XNU patch: hosted platform registers a stand-in sep-endpoint,scrd service (AMFI's device-state thread waits for it by name; launchd's AMFI sysctl waits on that thread)
d6f796a Heyang Zhou committed 8 days ago
tools/dev/kcstrs.py: adrp+add targets and strings in a KC range
02da7bb Heyang Zhou committed 8 days ago
XNU patch: hosted AKSKernelServices stand-in for AMFI (table with the entries AMFI calls, signed with their type discriminators: notifications and state queries report unsupported)
e74b0ba Heyang Zhou committed 8 days ago
tools/dev/kcblraa.py: type-discriminated function pointer calls in a KC range
25e42b2 Heyang Zhou committed 8 days ago
kcdis: assemble .inst words and disassemble with llvm-objdump (no llvm-mc on the host)
6e12405 Heyang Zhou committed 8 days ago