hostd contract changes
Mirrored from
services/hostd/CHANGELOG.md, where releases update it. The component's page is hostd. This page describes the currentmainbranch of MixOS.
0.1.0 (draft)
- Read verbs
host.info,net.state,hostd.status,hostd.receipton the local socket and the Bus; retainedhostd.infotopic. - Control verbs
hostd.freeze(root on the host, or a grant) andhostd.thaw(root on the host only; also lifts grant suspensions), local only. - Write verbs
net.link.applyandhostd.undo, local only, behind standing grants in/etc/hostd/policy.mx(schema 1): caller by uid and verified cgroup, verb families, argument allow-lists, expiry, per-caller rate with a grant-wide cap. Receipts, health-checked rollback, and a circuit breaker that suspends a grant after two rollbacks in a row. - Local socket: NUL-framed JSON, kernel caller identity read per request, per-uid connection cap, connection lifetime, read and write deadlines.
hostd.statusaddsheld_grants: each grant the caller holds, in full.- Write verb
net.wg.apply: networkd-native WireGuard, key made and kept by hostd (0640 root:systemd-network, never returned), the handshake dead-man check. The unit gainsCAP_CHOWNandCAP_NET_ADMINfor it. - Write verbs
net.wifi.scanandnet.wifi.connectthrough iwd: no files, the passphrase only through a one-connect agent, put back by forgetting and reconnecting.