summaryrefslogtreecommitdiff
path: root/hardened_runtime.xcent.in
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2020-04-29 15:23:02 +0300
committerTor Lillqvist <tml@collabora.com>2020-04-29 21:45:21 +0200
commit88453fd13a653963b394b8f865ff104b5545f137 (patch)
treeeb255ff720ccdf82a46ca28fb25ad31577198ec6 /hardened_runtime.xcent.in
parent312d4cfddcc4b1aee964af6181b323c71821f3eb (diff)
Enable debugging of a hardened process on macOS
Add the com.apple.security.get-task-allow entitlement when not building for release. Change-Id: I1b05d8c48f0f2d587325d7dfc800bb4880a7fcaf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93159 Tested-by: Tor Lillqvist <tml@collabora.com> Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'hardened_runtime.xcent.in')
-rw-r--r--hardened_runtime.xcent.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/hardened_runtime.xcent.in b/hardened_runtime.xcent.in
new file mode 100644
index 000000000000..d270c93ec694
--- /dev/null
+++ b/hardened_runtime.xcent.in
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+ <dict>
+ <!-- AppleScript support -->
+ <key>com.apple.security.automation.apple-events</key>
+ <true/>
+ <!-- Needed for our runtime machine code generation -->
+ <key>com.apple.security.cs.disable-executable-page-protection</key>
+ <true/>
+ <!-- allow use of third-party plugins/frameworks (aka Java) -->
+ <key>com.apple.security.cs.disable-library-validation</key>
+ <true/>
+ @GET_TASK_ALLOW_ENTITLEMENT@
+ </dict>
+</plist>