mirror of
https://github.com/bherbruck/solidcraft.git
synced 2026-11-21 08:00:58 +00:00
b2ca3d045b
Plugins run as WebAssembly that wasmtime compiles to machine code when they load. The app and the command-line tool are signed with the hardened runtime, which kills a process that makes such memory executable without com.apple.security.cs.allow-unsigned-executable-memory. allow-jit is not enough, because wasmtime does not map its code with MAP_JIT. Add the entitlement to the app's entitlements and sign solidcraft-cli and solvecraft-cli with a new cli-entitlements.plist that carries it.
19 lines
1.0 KiB
Plaintext
19 lines
1.0 KiB
Plaintext
<?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">
|
|
<plist version="1.0">
|
|
<dict>
|
|
<!-- The hardened runtime only loads libraries signed by our own team. The 3D mouse support
|
|
(crates/threedx-client/src/macos.rs) dlopens 3Dconnexion's
|
|
/Library/Frameworks/3DconnexionClient.framework, which is signed by 3Dconnexion. Without
|
|
this, the load fails and the 3D mouse stops working without any message. -->
|
|
<key>com.apple.security.cs.disable-library-validation</key>
|
|
<true/>
|
|
<!-- Plugins run as WebAssembly compiled to machine code when they load (wasmtime with Cranelift,
|
|
crates/craft-plugin-wasm). The hardened runtime kills a process that makes such memory
|
|
executable unless it has this entitlement; allow-jit alone is not enough, because wasmtime does
|
|
not map its code with MAP_JIT. Without it, Run Plugin ends the app at once (#16141). -->
|
|
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
|
|
<true/>
|
|
</dict>
|
|
</plist>
|