summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-01-30 14:42:35 +0100
committerCarl Hetherington <cth@carlh.net>2024-02-05 13:00:35 +0100
commit1a3cf9982932585f082e10ceec115c94a4c9d4f5 (patch)
treecaf903e85698259ed436b57259407f4913c9f306 /platform
parent32dcd32b2c87766a1248bb078826ce9b83efacc4 (diff)
Add com.apple.security.cs.allow-unsigned-executable-memory (#2735).
Tobi pointed out that the crashing thread crashes when trying to execute the first instruction in the page VM_ALLOCATE 119af0000-119af1000 [ 4K] r-x/rwx SM=PRV which is dynamically allocated with VM_ALLOCATE (as opposed to being a memory-mapped binary). Its protections (r-x/rwx) suggest that its being used for JIT, so this code isn't signed, so the process is killed by the hardened runtime. We suspect FFmpeg is doing some JIT but perhaps only on x86_64 (as I couldn't reproduce the crash on arm64).
Diffstat (limited to 'platform')
-rw-r--r--platform/osx/make_dmg.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/osx/make_dmg.sh b/platform/osx/make_dmg.sh
index fb9a24a9b..4772d8b19 100644
--- a/platform/osx/make_dmg.sh
+++ b/platform/osx/make_dmg.sh
@@ -62,6 +62,8 @@ cat <<EOF > entitlements.plist
<true/>
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
<true/>
+ <key>com.apple.security.cs.allow-unsigned-executable-memory</key>
+ <true/>
</dict>
</plist>
EOF