Skip to content

Commit

Permalink
Restore support for apps that have the com.apple.private.security.no-…
Browse files Browse the repository at this point in the history
…sandbox entitlement
  • Loading branch information
opa334 committed Nov 28, 2023
1 parent 8baab5e commit dbaa03f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion RootHelper/main.m
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,12 @@ int signApp(NSString* appPath)
if (noContainerO && [noContainerO isKindOfClass:[NSNumber class]]) {
noContainer = [(NSNumber *)noContainerO boolValue];
}
if (!noContainer) {
NSObject *noSandboxO = entitlementsToUse[@"com.apple.private.security.no-sandbox"];
BOOL noSandbox = NO;
if (noSandboxO && [noSandboxO isKindOfClass:[NSNumber class]]) {
noSandbox = [(NSNumber *)noSandboxO boolValue];
}
if (!noContainer && !noSandbox) {
entitlementsToUse[@"com.apple.private.security.container-required"] = bundleId;
}
}
Expand Down

0 comments on commit dbaa03f

Please sign in to comment.