Skip to content

Live Device Ingress Live6C

Chris Sutton edited this page Nov 30, 2026 · 1 revision

Published documentation mirror. Edit the source through a repository PR. See Project status.

LIVE6C — Authorized device ingress owner

Status: accepted scoped native listener ownership; no deployed manager service. The accepted M9.4 adapter remains responsible for kernel metadata, sender allowlist, bounded PRI and opaque body validation. The LIVE6B.2 outbound owner is accepted as a scoped increment only. Authenticated manager ingress remains outstanding.

Authority and lifecycle

DeviceIngress owns one nonblocking close-on-exec IPv4 UDP socket. A trusted serialized administrative caller supplies explicit collection and plaintext consent, nonzero generation, current exact live_lan::Binding, unprivileged port and 1–64 distinct numeric on-link peer addresses. No defaults, wildcard bind, privileged port, hostname resolution, self-address, network/broadcast address or outside-prefix source approval. The binding must be a usable private IPv4 prefix, exact current up/running non-loopback interface/address and netmask. The device-specific policy is separate from M3.4 authenticated agent egress and does not weaken that policy. It permits isolated veth fixtures; virtual attachment is not proof of physical topology or device identity.

Socket creation follows validation. SO_BINDTODEVICE is set and read back; no fallback or elevation is permitted. The socket requests a 16 KiB receive buffer and rejects a returned kernel SO_RCVBUF value above 64 KiB (Linux accounting, not a strict system-wide memory guarantee). IP_PKTINFO is required. No reuse flags are set. The socket binds only the exact configured address and port. The owner rechecks current consent/generation before receive, and samples exact topology before receive and after accepted input. M9.4 independently checks namespace, socket tuple, interface and datagram scope. Withdrawal or terminal errors close the descriptor, discard pending kernel datagrams and prevent reactivation of that owner. A fresh owner requires fresh approval.

Admission and provenance

At most one nonblocking receive attempt every 20 ms per owner (including empty attempts). At most one accepted event per approved source address per second; a rate-limited accepted-envelope datagram is consumed and discarded. This conservative development limit is not a production throughput target. The owner returns at most one typed event to its caller and has no user-space queue. It forces message text omission even though the underlying M9.4 adapter supports explicit text retention. It preserves kernel-observed address/port, interface, receiver time, policy generation, datagram size and sender-asserted PRI. All events are UnauthenticatedUdp. Neither allowlist membership nor PRI or claimed hostname authenticates a device or implies malicious activity. Counters saturate and distinguish returned events, per-source rate drops and adapter rejections. They do not measure datagrams lost before receive, kernel queue overflow, network loss or stale buffered packets. Paced and empty turns are not counted as drops. No responses, forwarding, persistence or alerts.

Qualification and remaining work

The existing M9.4 native test retains all previous real-loopback checks and adds owner consent, generation, port, missing attachment, loopback, outside prefix, duplicate source and sticky denial controls. The separately invoked live_device_fixture.py creates two disposable network namespaces with no default route, connects them by veth, and runs the receiver as the ordinary sudo caller. It tests exact binding, competing bind refusal, approved UDP, source rate drop, unapproved sender, malformed input, text omission, counters, active generation/consent withdrawal and link withdrawal. The fixture transmits synthetic data only. It requires explicit administrator invocation; no persistent service or firewall change.

The native policy tests alone do not establish successful listener operation. The full target-host isolated fixture and inherited qualification passed (228 local gates, 98 structural verifiers, nine hosted checks on 6b3c32b, manual review/merge reported). This candidate is not executable-level manager integration. Trusted callers must serialize access, avoid competing listeners, supply live consent and schedule timely calls; topology checks are sampled, not atomic, and syscall latency is not hard bounded. Per-owner rate limits do not bound aggregate traffic across owners. Operational configuration/revocation, global budgets, independent freshness and kernel loss accounting, typed durable device evidence and query/alert integration, gateway qualification and physical-device tests remain outstanding. Do not configure real devices or expose this UDP profile to the Internet. Existing TB-02/TB-03, TH-004/005/006/019 and KS-NET-001/003/005/006/007/031/033/041 remain applicable; no threat closure.

The subsequent LIVE6D.4.4 candidate composes the native owner into an explicitly authorized foreground manager device-only lifecycle and separate typed ledger. The original native scope and unauthenticated UDP trust classification remain unchanged.

Clone this wiki locally