Skip to content

Commit

Permalink
If we can remount realfs, disable the snapshot too
Browse files Browse the repository at this point in the history
  • Loading branch information
asdfugil committed Feb 19, 2024
1 parent 6bf3ca8 commit 4255e7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checkra1n/kpf/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2547,7 +2547,7 @@ static void kpf_cmd(const char *cmd, char *args)
*mac_execve_hook = delta;
}

if(!rootvp_string_match) // Only use underlying fs on union mounts
if(!livefs_string_match) // Only disable snapshot when we can remount realfs
{
char *snapshotString = (char*)memmem((unsigned char *)text_cstring_range->cacheable_base, text_cstring_range->size, (uint8_t *)"com.apple.os.update-", strlen("com.apple.os.update-"));
if (!snapshotString) snapshotString = (char*)memmem((unsigned char *)plk_text_range->cacheable_base, plk_text_range->size, (uint8_t *)"com.apple.os.update-", strlen("com.apple.os.update-"));
Expand Down

0 comments on commit 4255e7f

Please sign in to comment.