diff --git a/platforms/iOS/vm/OSX/SqueakOSXAppDelegate.m b/platforms/iOS/vm/OSX/SqueakOSXAppDelegate.m index 9ac621d82d..0c768b3f5e 100644 --- a/platforms/iOS/vm/OSX/SqueakOSXAppDelegate.m +++ b/platforms/iOS/vm/OSX/SqueakOSXAppDelegate.m @@ -133,6 +133,15 @@ - (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sende return NSTerminateCancel; } +- (BOOL)applicationSupportsSecureRestorableState:(NSApplication *)sender { + // macOS 12.0+ + // We do not handle save/restore ourselves. Thus, it is fine to let + // the operating system handle it securely. + // See https://sector7.computest.nl/post/2022-08-process-injection- + // breaking-all-macos-security-layers-with-a-single-vulnerability/ + return YES; +} + - (void) initializeTheWindowHandler { [windowHandler mainViewOnWindow: self.mainView]; self.mainView.windowLogic = windowHandler;