diff --git a/Resources/Build.py b/Resources/Build.py index ecad0b42e..b4e64b0a5 100644 --- a/Resources/Build.py +++ b/Resources/Build.py @@ -683,6 +683,9 @@ class BuildOpenCore: print("- Disabling Library Validation") self.get_item_by_kv(self.config["Kernel"]["Patch"], "Comment", "Disable Library Validation Enforcement")["Enabled"] = True self.config["NVRAM"]["Add"]["4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102"]["OCLP-Settings"] += " -allow_amfi" + # CSLVFixup simply patches out __RESTRICT and __restrict out of the Music.app Binary + # Ref: https://pewpewthespells.com/blog/blocking_code_injection_on_ios_and_os_x.html + self.enable_kext("CSLVFixup.kext", self.constants.cslvfixup_version, self.constants.cslvfixup_path) if self.constants.secure_status is False: print("- Disabling SecureBootModel") self.config["Misc"]["Security"]["SecureBootModel"] = "Disabled" diff --git a/Resources/Constants.py b/Resources/Constants.py index e3f4dfae7..526f9517b 100644 --- a/Resources/Constants.py +++ b/Resources/Constants.py @@ -35,6 +35,7 @@ class Constants: self.debugenhancer_version = "1.0.4" # DebugEnhancer self.cpufriend_version = "1.2.4" # CPUFriend self.bluetool_version = "2.6.1" # BlueToolFixup + self.cslvfixup_version = "2.6.1" # CSLVFixup ## Apple ## https://www.apple.com @@ -336,6 +337,10 @@ class Constants: @property def bluetool_path(self): return self.payload_kexts_path / Path(f"Acidanthera/BlueToolFixup-v{self.bluetool_version}.zip") + + @property + def cslvfixup_path(self): + return self.payload_kexts_path / Path(f"Acidanthera/CSLVFixup-v{self.cslvfixup_version}.zip") @property def innie_path(self): diff --git a/payloads/Config/config.plist b/payloads/Config/config.plist index d27afa770..2dc5db14c 100644 --- a/payloads/Config/config.plist +++ b/payloads/Config/config.plist @@ -952,6 +952,24 @@ PlistPath Contents/Info.plist + + Arch + x86_64 + BundlePath + CSLVFixup.kext + Comment + Fix Music.app + Enabled + + ExecutablePath + Contents/MacOS/CSLVFixup + MaxKernel + 20.99.99 + MinKernel + 20.0.0 + PlistPath + Contents/Info.plist + Block diff --git a/payloads/Kexts/Acidanthera/CSLVFixup-v2.6.1.zip b/payloads/Kexts/Acidanthera/CSLVFixup-v2.6.1.zip new file mode 100644 index 000000000..d91bb5235 Binary files /dev/null and b/payloads/Kexts/Acidanthera/CSLVFixup-v2.6.1.zip differ