diff --git a/Library/OcAfterBootCompatLib/CustomSlide.c b/Library/OcAfterBootCompatLib/CustomSlide.c index 37ddb81d85bee24963babb2149d105e69f389dc2..38c374a5a44d50e28a995c688c4ed2304bd9ebfb 100644 --- a/Library/OcAfterBootCompatLib/CustomSlide.c +++ b/Library/OcAfterBootCompatLib/CustomSlide.c @@ -813,8 +813,7 @@ AppleSlideGetVariable ( FilterMapContext, (BootCompat->CpuInfo->CpuGeneration == OcCpuGenerationSandyBridge) || (BootCompat->CpuInfo->CpuGeneration == OcCpuGenerationIvyBridge) - ) - && !BootCompat->ServiceState.AppleCustomSlide) + )) { // // When we cannot allow some KASLR values due to used address we generate diff --git a/Library/OcAfterBootCompatLib/ServiceOverrides.c b/Library/OcAfterBootCompatLib/ServiceOverrides.c index 436a8e1a2f3c911e60b554c19140d953760ef626..4d0eab132a6bc91a14bbb4ce4bd769042623dab6 100644 --- a/Library/OcAfterBootCompatLib/ServiceOverrides.c +++ b/Library/OcAfterBootCompatLib/ServiceOverrides.c @@ -1079,7 +1079,7 @@ OcGetVariable ( BootCompat = GetBootCompatContext (); IsApple = BootCompat->ServiceState.AppleBootNestedCount > 0; - if (IsApple && BootCompat->Settings.ProvideCustomSlide) { + if (IsApple && (BootCompat->Settings.ProvideCustomSlide || BootCompat->Settings.AllowRelocationBlock)) { Status = AppleSlideGetVariable ( BootCompat, BootCompat->ServicePtrs.GetVariable,