Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can I run a sandboxed OS X app without sandboxing?

I have an app which runs using sandboxing. How can I run it without sandboxing? Suppose I can't just recompile the app with sandboxing off.

like image 301
Taylor Avatar asked Feb 20 '12 17:02

Taylor


People also ask

Are all macOS apps sandboxed?

The macOS operating system and its file system operate differently and are structured differently. The idea is similar, though. Every application is given a sandbox, a directory it can use to store data in.

Does Mac Have a sandbox mode?

Overview. The App Sandbox is an access control technology that macOS provides and enforces at the kernel level. The sandbox's primary function is to contain damage to the system and the user's data if the user executes a compromised app.

Does Apple use sandboxing?

iOS and iPadOS help ensure runtime security by using a “sandbox,” declared entitlements, and Address Space Layout Randomization (ASLR).


1 Answers

This works:

$ ditto MySandboxedApp.app MySandboxedApp.backup.app
$ codesign -f -s- MySandboxedApp.app

Note the extra minus in "-s-".

like image 50
Taylor Avatar answered Sep 21 '22 19:09

Taylor