From 1a3cf9982932585f082e10ceec115c94a4c9d4f5 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 30 Jan 2024 14:42:35 +0100 Subject: [PATCH] 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). --- platform/osx/make_dmg.sh | 2 ++ 1 file changed, 2 insertions(+) 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 < entitlements.plist com.apple.security.cs.allow-dyld-environment-variables + com.apple.security.cs.allow-unsigned-executable-memory + EOF -- 2.30.2