Skip to content

Commit

Permalink
systemhook: don't trust library inserts if config says not to trust
Browse files Browse the repository at this point in the history
  • Loading branch information
opa334 committed Jul 26, 2024
1 parent 88b27e4 commit 70e7ca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BaseBin/systemhook/src/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ int spawn_hook_common(pid_t *restrict pid, const char *restrict path,
if (!strcmp(existingLibraryInsert, HOOK_DYLIB_PATH)) {
systemHookAlreadyInserted = true;
}
else {
else if (!(spawnConfig & kSpawnConfigDontTrust)) {
// Upload everything already in DYLD_INSERT_LIBRARIES to trustcache aswell
trust_binary(existingLibraryInsert, NULL);
}
Expand Down

0 comments on commit 70e7ca3

Please sign in to comment.