Restore support for apps that have the com.apple.private.security.no-sandbox entitlement

This commit is contained in:
opa334 2023-11-28 14:12:45 +01:00
parent 8baab5e2e2
commit dbaa03f8a6
1 changed files with 6 additions and 1 deletions

View File

@ -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;
}
}