mac: Drop JIT entitlement from the proxy resolver process
This was originally attempted in a8a9ff46, but PartitionAlloc unconditionally supplied MAP_JIT to mmap() if it was allocating pages for V8, even though V8 was running in --jitless mode. Because MAP_JIT can only be used from a process that has the allow-jit entitlement, this resulted in the process crashing due to a code signing validation error. Instead of unconditionally supplying MAP_JIT, PartitionAlloc now will only do so if the process has the allow-jit entitlement. Test: Configured a Proxy PAC file, did local signing of Chromium, verified that the proxy resolver utility process does not crash. Bug: 961592, 1052853 Change-Id: Icd1c2db42c208272f36c7d4c0fc1c1c3c6a3520f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2078792Reviewed-by:David Benjamin <davidben@chromium.org> Reviewed-by:
Chris Palmer <palmer@chromium.org> Commit-Queue: Robert Sesek <rsesek@chromium.org> Cr-Commit-Position: refs/heads/master@{#745188}
Showing
Please register or sign in to comment