Unverified Commit 429a5220 authored by boklm's avatar boklm
Browse files

Bug 41243: Use separate entitlements for signing tor

Use a separate entitlements file for signing the tor binary, with
`com.apple.security.cs.allow-unsigned-executable-memory` enabled.
parent 1c24b4a9
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
<?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">
<!--
     Entitlements to apply to the tor process executable.
-->
<plist version="1.0">
  <dict>
    <!-- tor needs this when connecting to PoW onion-services.
         See tor-browser#43250 and tor#40988 -->
    <key>com.apple.security.cs.allow-unsigned-executable-memory</key><true/>

    <!-- Allow loading third party libraries to support pkcs11 modules -->
    <key>com.apple.security.cs.disable-library-validation</key><true/>

    <key>com.apple.security.cs.allow-jit</key><true/>
  </dict>
</plist>
+1 −0
Original line number Diff line number Diff line
@@ -82,6 +82,7 @@ $rcodesign sign \
  --code-signature-flags Contents/Frameworks/ChannelPrefs.framework:runtime \
  --code-signature-flags Contents/MacOS/plugin-container.app:runtime \
  --code-signature-flags Contents/MacOS/media-plugin-helper.app:runtime \
  --entitlements-xml-path Contents/MacOS/Tor/tor:/signing/tor-browser-build/tools/signing/macos-entitlements/tor.xml \
  --entitlements-xml-path Contents/MacOS/plugin-container.app:/signing/tor-browser-build/tools/signing/macos-entitlements/plugin-container.xml \
  --entitlements-xml-path Contents/MacOS/media-plugin-helper.app:/signing/tor-browser-build/tools/signing/macos-entitlements/media-plugin-helper.xml \
  --entitlements-xml-path /signing/tor-browser-build/tools/signing/macos-entitlements/firefox.browser.xml \