Skip to content

Commit e98323f

Browse files
committed
Disable root_livefs again since it isn't actually required
Signed-off-by: Nick Chan <towinchenmi@gmail.com>
1 parent e910449 commit e98323f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

checkra1n/kpf/main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1898,6 +1898,7 @@ void kpf_vnop_rootvp_auth_patch(xnu_pf_patchset_t* patchset) {
18981898
xnu_pf_maskmatch(patchset, "vnop_rootvp_auth", matches, masks, sizeof(masks)/sizeof(uint64_t), true, (void*)vnop_rootvp_auth_callback);
18991899
}
19001900

1901+
#if 0
19011902
bool root_livefs_callback(struct xnu_pf_patch *patch, uint32_t *opcode_stream) {
19021903
puts("KPF: Found root_livefs");
19031904
opcode_stream[2] = NOP;
@@ -1917,6 +1918,7 @@ void kpf_root_livefs_patch(xnu_pf_patchset_t* patchset) {
19171918
};
19181919
xnu_pf_maskmatch(patchset, "root_livefs", matches, masks, sizeof(masks)/sizeof(uint64_t), true, (void*)root_livefs_callback);
19191920
}
1921+
#endif
19201922

19211923
// this is copied bakera1n 16.2+ code
19221924
uint32_t* proc_selfname = NULL;
@@ -2750,10 +2752,12 @@ static void kpf_cmd(void)
27502752

27512753
kpf_apfs_patches(apfs_patchset, is_ssv_required, apfs_vfsop_mount_string_match != NULL, ipad6_ipados18);
27522754

2755+
#if 0
27532756
if (!(palera1n_flags & palerain_option_ssv) && livefs_string_match)
27542757
{
27552758
kpf_root_livefs_patch(apfs_patchset);
27562759
}
2760+
#endif
27572761

27582762
if (!(palera1n_flags & palerain_option_rootful) && !(palera1n_flags & palerain_option_rootless)) {
27592763
if (palera1n_flags & palerain_option_ssv) {

0 commit comments

Comments
 (0)