Skip to content

Commit

Permalink
SoftwareUpdate.cpp: Expand to Install.app support
Browse files Browse the repository at this point in the history
  • Loading branch information
khronokernel committed Jun 10, 2023
1 parent c873a45 commit e5c5256
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion RestrictEvents/SoftwareUpdate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,16 @@ static int my_sysctl_vmm_present(__unused struct sysctl_oid *oidp, __unused void
char procname[64];
proc_name(proc_pid(req->p), procname, sizeof(procname));
// SYSLOG("supd", "\n\n\n\nsoftwareupdated vmm_present %d - >>> %s <<<<\n\n\n\n", arg2, procname);
if (revsbvmmIsSet && ((lilu.getRunMode() & LiluAPI::RunningInstallerRecovery) || (strcmp(procname, "softwareupdated") == 0 || strcmp(procname, "com.apple.Mobile") == 0))) {
if (revsbvmmIsSet && (
// Always return 1 in recovery/installers
(lilu.getRunMode() & LiluAPI::RunningInstallerRecovery) ||
// Otherwise, check if userspace OS updaters/installers
(
strcmp(procname, "softwareupdated") == 0 ||
strcmp(procname, "com.apple.Mobile") == 0 ||
strcmp(procname, "osinstallersetup") == 0 // Primarily for 'Install macOS.app'
)
)) {
int hv_vmm_present_on = 1;
return SYSCTL_OUT(req, &hv_vmm_present_on, sizeof(hv_vmm_present_on));
} else if (revassetIsSet && (strncmp(procname, "AssetCache", sizeof("AssetCache")-1) == 0)) {
Expand Down

0 comments on commit e5c5256

Please sign in to comment.