Felix
bff9e87096
fix: 图片密钥内存扫描通过子进程调用解决 task_for_pid 权限问题
Electron 进程缺少 com.apple.security.cs.debugger entitlement,
导致 ScanMemoryForImageKey 中的 task_for_pid 调用失败(kr=5)。
新增 image_scan_helper 子进程包装程序(与 xkey_helper 方案一致):
- 新建 resources/image_scan_helper.c:dlopen libwx_key.dylib 并调用
ScanMemoryForImageKey,通过 JSON stdout 返回结果
- 新建 resources/image_scan_entitlements.plist:包含 debugger 和
allow-unsigned-executable-memory entitlements
- 编译为 universal binary(x86_64 + arm64)并 ad-hoc 签名
- 修改 keyServiceMac.ts _scanMemoryForAesKey():优先 spawn
image_scan_helper 子进程,失败时 fallback 到直接调 dylib
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 15:18:52 +11:00
..
2026-02-27 13:40:13 +08:00
2026-03-04 21:19:11 +08:00
2026-03-07 15:00:59 +08:00
2026-03-08 12:25:06 +08:00
2026-03-04 21:19:10 +08:00
2026-02-16 23:31:52 +08:00
2026-02-19 16:49:46 +08:00
2026-03-08 13:01:49 +08:00
2026-02-16 10:23:33 +08:00
2026-03-04 21:19:10 +08:00
2026-03-04 21:19:10 +08:00
2026-02-19 17:55:01 +08:00
2026-02-19 17:55:01 +08:00
2026-03-04 21:19:10 +08:00
2026-03-10 14:06:03 +08:00
2026-03-04 21:19:10 +08:00
2026-03-04 21:19:10 +08:00
2026-02-26 19:51:39 +08:00
2026-03-02 16:44:09 +08:00
2026-01-10 13:01:37 +08:00
2026-02-17 23:14:42 +08:00
2026-03-08 12:25:06 +08:00
2026-03-13 15:18:52 +11:00
2026-02-16 23:31:52 +08:00
2026-03-04 21:19:11 +08:00
2026-03-10 09:37:31 +08:00
2026-03-07 14:26:26 +08:00
2026-02-23 09:55:33 +08:00
2026-02-17 23:14:42 +08:00
2026-03-11 23:06:20 +08:00
2026-03-05 13:55:42 +08:00
2026-01-30 23:47:46 +08:00