sys_patch.py: Fix auth logic

This commit is contained in:
Mykola Grymalyuk
2022-09-04 21:38:35 -06:00
parent 9da0b24b30
commit 23e939ea72
+1 -2
View File
@@ -367,8 +367,7 @@ class PatchSysVolume:
# To grab the CDHash of a kext, run 'codesign -dvvv <kext_path>' # To grab the CDHash of a kext, run 'codesign -dvvv <kext_path>'
try: try:
aux_cache_path = Path(self.mount_location_data) / Path("/private/var/db/KernelExtensionManagement/AuxKC/CurrentAuxKC/com.apple.kcgen.instructions.plist") aux_cache_path = Path(self.mount_location_data) / Path("/private/var/db/KernelExtensionManagement/AuxKC/CurrentAuxKC/com.apple.kcgen.instructions.plist")
if not aux_cache_path.exists(): if aux_cache_path.exists():
return
aux_cache_data = plistlib.load((aux_cache_path).open("rb")) aux_cache_data = plistlib.load((aux_cache_path).open("rb"))
for kext in aux_cache_data["kextsToBuild"]: for kext in aux_cache_data["kextsToBuild"]:
if "bundlePathMainOS" in aux_cache_data["kextsToBuild"][kext]: if "bundlePathMainOS" in aux_cache_data["kextsToBuild"][kext]: