Skip to content

fix(net): reach vmnet through a root socket_vmnet on macOS 15 (#47) - #49

Merged
nsaintot merged 1 commit into
mainfrom
macos-15-vmnet-bridged-refused-for-the-entitled
Oct 27, 2026
Merged

nsaintot merged 1 commit into
mainfrom
macos-15-vmnet-bridged-refused-for-the-entitled

Conversation

@nsaintot

Copy link
Copy Markdown
Owner

Fixes #47.

macOS 15 treats the entitled app as a vmnet limited client: bridged mode is refused, and host-only members are filtered (hostfilter, PRIVATE), so decks never see each other. macOS 27 grants both.

Change

  • The first vmnet selection probes vmnet with a paused QEMU on a bridged netdev. A refusal routes bridged and host-only through a root socket_vmnet (-netdev stream,reconnect-ms=1000); otherwise nothing changes. CDJ3K_VMNET=helper|inprocess overrides the probe.
  • One shared daemon per bridged interface or host network UUID, started after one admin prompt. The socket lives in a root-owned /var/run/cdj3k-emu-<uid>, mode 0600. A root watchdog stops the daemon when no slot's lease is alive.
  • stage.sh builds socket_vmnet 1.2.2 from source for the bundle's arches, with a macOS 15.0 deployment target.
  • Docs: docs/network.md, README elevation table, NOTICE.

Tested (macOS 27, CDJ3K_VMNET=helper)

  • ctl e2e link-two-decks passes on host-only and on en0: one prompt per daemon, the second deck joins without one, clean teardown.
  • Probe without the override keeps in-process vmnet, with no prompt.

Not tested

  • macOS 15 itself (reporter).
  • Linux and Windows builds (the helper is macOS-only).

macOS 15 treats the entitled app as a vmnet limited client: bridged mode
fails with "cannot create vmnet interface", and host-mode members get
hostfilter and PRIVATE, so two instances never reach each other.

- The first vmnet selection in a process probes vmnet with a paused QEMU
  on a bridged netdev. A refusal routes both modes through a shared root
  socket_vmnet (-netdev stream, reconnect-ms=1000); anything else keeps
  in-process vmnet. CDJ3K_VMNET=helper|inprocess overrides the probe.
- One daemon per bridged interface or host network UUID. Its socket lives
  in a root-owned /var/run/cdj3k-emu-<uid>, mode 0600 for the user. Slots
  hold PID leases in the runtime root; a root watchdog reads them and stops
  the daemon when none is alive. An flock serializes the start.
- stage.sh builds socket_vmnet 1.2.2 from source for the bundle's arches
  and deployment target, and ships its license.
@nsaintot
nsaintot merged commit fb3abd2 into main Oct 27, 2026
34 checks passed
@nsaintot
nsaintot deleted the macos-15-vmnet-bridged-refused-for-the-entitled branch October 27, 2026 18:21

This branch was previously deployed

1 inactive deployment
e2e — a6f1a203 Deployed Oct 27, 2026 by nsaintot via E2E (Linux aarch64) #56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

macOS 15: vmnet-bridged refused for the entitled app, and vmnet-host instances can't reach each other (hostfilter + PRIVATE)

1 participant