Files
Precious Okwu 7166fc34ea macOS: attribute dev.kiri.docker-socket LaunchDaemon to Kiri via signed helper (#1196)
`/Library/LaunchDaemons/dev.kiri.docker-socket.plist` previously invoked
`/bin/sh -c` without `AssociatedBundleIdentifiers`, causing macOS
`backgroundtaskmanagementd` to display the job as `sh` under `Unknown Developer`
in System Settings -> General -> Login Items & Extensions.

macOS `BackgroundTaskManagement` resolves `AssociatedBundleIdentifiers` on a
legacy LaunchDaemon only when its `Program` binary carries a valid code
signature whose `TeamIdentifier` matches the associated app bundle's
`TeamIdentifier` (ignoring unsigned scripts and ad-hoc re-signed copies), while
pointing a root LaunchDaemon directly at `/Applications/Kiri.app` would execute
from a potentially user-writable bundle.

Ship a tiny standalone `kiri-docker-socket` Mach-O binary in
`Contents/Resources/bin/kiri-docker-socket` (in both `Kiri.app` and
`Kiri Lite.app`), signed standalone (`Info.plist=not bound`, `Sealed
Resources=none`, `--identifier dev.kiri.docker-socket`) with Kiri's signing
identity so copying it to `/Library/PrivilegedHelperTools/dev.kiri.docker-socket`
(`root:wheel`, `0755`) preserves its embedded `TeamIdentifier`. Verify both
SHA-256 and `codesign --verify --strict` (including the `TeamIdentifier` and
`dev.kiri.docker-socket` identifier requirement when Kiri is Developer ID
signed) on the root-owned `.new` staging copy before moving it into place, set
`AssociatedBundleIdentifiers` = `["dev.kiri.app"]` in the plist, migrate legacy
plists on explicit setup actions or piggybacked administrator prompts without
touching another engine's `/var/run/docker.sock`, and remove both the helper
and plist during `kiri setup --uninstall`.

Fixes #1168
2026-12-04 02:42:26 +01:00
..
2026-11-02 18:32:31 +01:00
2026-11-02 18:32:31 +01:00