Skip to content

Commit

Permalink
jsc shell and testapi process should also have CaptivePortal entitlement
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=264432
rdar://118131530

Reviewed by Mark Lam.

When JIT is disabled, the jsc shell and testapi process also needs
to be able to allocate the Gigacage.

* Source/JavaScriptCore/Scripts/process-entitlements.sh:

Canonical link: https://commits.webkit.org/270484@main
  • Loading branch information
hyjorc1 committed Nov 9, 2023
1 parent fd98410 commit 0dcfb0a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Source/JavaScriptCore/Scripts/process-entitlements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ function mac_process_jsc_entitlements()
if (( "${TARGET_MAC_OS_X_VERSION_MAJOR}" >= 110000 ))
then
plistbuddy Add :com.apple.security.cs.jit-write-allowlist bool YES
plistbuddy Add :com.apple.developer.kernel.extended-virtual-addressing bool YES
fi

if (( "${TARGET_MAC_OS_X_VERSION_MAJOR}" >= 120000 ))
Expand All @@ -37,6 +38,7 @@ function mac_process_testapi_entitlements()
if (( "${TARGET_MAC_OS_X_VERSION_MAJOR}" >= 110000 ))
then
plistbuddy Add :com.apple.security.cs.jit-write-allowlist bool YES
plistbuddy Add :com.apple.developer.kernel.extended-virtual-addressing bool YES
fi

if (( "${TARGET_MAC_OS_X_VERSION_MAJOR}" >= 120000 ))
Expand All @@ -60,6 +62,7 @@ function maccatalyst_process_jsc_entitlements()
if (( "${TARGET_MAC_OS_X_VERSION_MAJOR}" >= 110000 ))
then
plistbuddy Add :com.apple.security.cs.jit-write-allowlist bool YES
plistbuddy Add :com.apple.developer.kernel.extended-virtual-addressing bool YES
fi
fi

Expand All @@ -78,6 +81,7 @@ function maccatalyst_process_testapi_entitlements()
if (( "${TARGET_MAC_OS_X_VERSION_MAJOR}" >= 110000 ))
then
plistbuddy Add :com.apple.security.cs.jit-write-allowlist bool YES
plistbuddy Add :com.apple.developer.kernel.extended-virtual-addressing bool YES
fi

if (( "${TARGET_MAC_OS_X_VERSION_MAJOR}" >= 120000 ))
Expand All @@ -95,6 +99,7 @@ function ios_family_process_jsc_entitlements()
{
plistbuddy Add :com.apple.private.verified-jit bool YES
plistbuddy Add :dynamic-codesigning bool YES
plistbuddy Add :com.apple.developer.kernel.extended-virtual-addressing bool YES
}

function ios_family_process_testapi_entitlements()
Expand Down

0 comments on commit 0dcfb0a

Please sign in to comment.