From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:Kernelcache" |
|---|
| claim | "LC_FILESET_ENTRY (0x80000035) is a 32-byte-plus-id command: cmd, cmdsize, vmaddr u64, fileoff u64, an lc_str entry_id offset and a reserved u32; MH_FILESET is filetype 0xC." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Mach-O kernel collections (MH_FILESET)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "fileset_entry_command" |
|---|
| size_min | "0x20" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "cmd" |
|---|
| notes | "LC_FILESET_ENTRY = 0x80000035" |
|---|
|
| offset | "0x4" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "cmdsize" |
|---|
| notes | "includes the id string" |
|---|
|
| offset | "0x8" |
|---|
| size | 8 |
|---|
| type | "uint64_t" |
|---|
| name | "vmaddr" |
|---|
|
| offset | "0x10" |
|---|
| size | 8 |
|---|
| type | "uint64_t" |
|---|
| name | "fileoff" |
|---|
|
| offset | "0x18" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "entry_id" |
|---|
| notes | "lc_str: offset of the id string from the start of the command" |
|---|
|
| offset | "0x1C" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "reserved" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "struct fileset_entry_command; LC_FILESET_ENTRY is (0x35 | LC_REQ_DYLD) at line 326 and MH_FILESET 0xc at line 123" |
|---|
| repo | "https://github.com/apple-oss-distributions/xnu" |
|---|
| commit | "f6217f891ac0bb64f3d375211650a4c1ff8ca1ea" |
|---|
| path | "EXTERNAL_HEADERS/mach-o/loader.h" |
|---|
| lines | "1204-1211" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "fileset_entry_command" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T01:09:09.009Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T08:38:05.643Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read struct fileset_entry_command in loader.h (lines 1204-1211) at the cited commit: u32 cmd, u32 cmdsize, u64 vmaddr, u64 fileoff, union lc_str entry_id, u32 reserved = 0x20 bytes before the id string, offsets 0/4/8/0x10/0x18/0x1C." |
|---|
|
|
|---|