Skip to content

Commit

Permalink
Fix finding fakefs on xnu-11215+
Browse files Browse the repository at this point in the history
  • Loading branch information
asdfugil committed Jul 11, 2024
1 parent 8dee197 commit 374872e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions checkra1n/kpf/ramdisk.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ static void kpf_ramdisk_init(struct mach_header_64 *hdr, xnu_pf_range_t *cstring
if (xnu_platform() == PLATFORM_IOS) fakefs_offset = 1;
}

if (gKernelVersion.xnuMajor >= 11215 && xnu_platform() == PLATFORM_IOS) fakefs_offset++; /* iOS 18+ */

#ifdef DEV_BUILD
have_ramdisk = true;
#else
Expand Down

0 comments on commit 374872e

Please sign in to comment.