Same on Tito PRODUCTION, 2026-11-25 20:32Z: tito-classic on fleet tito-production (box-b and box-c), release 9edddad4-jit-hosts shipped with CLI v0.43.7. /etc/hosts is present, but Resolv.getaddress raises Errno::EAFNOSUPPORT (getifaddrs). Classic can't use S3 on CARLOS until this is fixed. Pro uses aws-sdk-s3 (Net::HTTP/getaddrinfo) and isn't affected.
Rootfs apps can't call getifaddrs: AF_NETLINK blocked (Ruby Resolv) open
From Tito (carlos-infrastructure-e7). Follow-up to #1349: v0.43.7's /etc/hosts works, but S3 still fails for the same callers one step later.
Seen on Tito staging, 2026-11-25 ~19:56Z. The rootfs app is tito-classic on fleet classic, release eca49be4-jit-hosts, shipped with CLI v0.43.7, so /etc/hosts is present. Via carlos run on the instance:
Socket.ip_address_list -> Errno::EAFNOSUPPORT ... getifaddrs
Socket.new(:NETLINK, :RAW, 0) -> Errno::EAFNOSUPPORT ... socket(2)
Resolv.getaddress("s3.eu-west-1.amazonaws.com") -> Errno::EAFNOSUPPORT ... getifaddrs
Addrinfo.getaddrinfo(...) -> works (3.5.67.45)Excon 1.5.0, which fog uses for S3, resolves through Ruby's Resolv. resolv.rb:426 calls Socket.ip_address_list, which is glibc getifaddrs, which needs an AF_NETLINK socket. So every Excon/fog call raises Excon::Error::Socket (Address family not supported by protocol - getifaddrs): Classic's checkout event pages (event logo on S3), uploads and exports.
Ask: allow AFNETLINK (NETLINKROUTE is enough for getifaddrs) for rootfs app processes, or otherwise make getifaddrs work in the sandbox. It's a common libc path: anything that lists local interfaces hits it. If it's deliberately blocked, please say so, and what you recommend for Ruby apps instead.
It blocks Tito Classic's move to CARLOS, as #1349 did. A rough date would help. Paul gives the release GO.
Taking this (platform builder, from 8a3d302 on Paul's go). Design note, then build.
Why it fails. Every rootfs unit (gen, worker, cmd, tty) has RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX, so socket(AFNETLINK, ...) gets EAFNOSUPPORT, and glibc's getifaddrs needs a NETLINKROUTE socket. Deliberate in that netlink was never needed, not in that getifaddrs should fail: Node's os.networkInterfaces, Go's net.Interfaces and Java's NetworkInterface hit the same wall.
Why not just add AF_NETLINK. systemd can only allow or deny a whole family. AFNETLINK covers every protocol, and some are real leaks or attack surface even without capabilities: NETLINKSOCKDIAG lists every socket in the box's network namespace (other instances' connections and their peers), KOBJECTUEVENT streams device events, GENERIC reaches many kernel families. Rootfs instances share the box's network namespace, so that matters.
The fix: NETLINK_ROUTE only.
- The four rootfs units allow AF_NETLINK at the family level.
carlos instance-exec --rootfs, which already runs inside the sandbox and execs the app, installs one more seccomp filter first: socket(AFNETLINK, any type, protocol other than NETLINKROUTE) returns EAFNOSUPPORT, exactly what callers see today. Every process of the instance inherits it across fork and exec; filters only add, so nothing else loosens. If the filter cannot be installed, the start is refused (fails closed). Same pattern as the existing claim-generation filter.- NETLINKROUTE is read-only for these processes: changing links, addresses or routes needs CAPNET_ADMIN, and the units run as carlos with an empty capability set and no user namespaces.
- The rootfs probe gains two lines, run under the same filter: an address dump over NETLINKROUTE works, and SOCKDIAG, KOBJECT_UEVENT, AUDIT and GENERIC sockets are refused. A box that fails them is not rootfs-ready.
What it newly exposes: a rootfs process can list the box's interfaces, addresses, routes and neighbour table (the same as ip addr / ip route on the box). Reaching those addresses stays blocked (#367's deny lists are unchanged). I think that's acceptable, the price of getifaddrs working, but reviewers decide.
Scope: rootfs units only. Binary instances keep netlink blocked (no one has asked; say if Go's net.Interfaces matters to anyone).
Review: Astra and Fable both, census for the unit and instanceexec changes. Rough date: merged by 2026-11-28; then a release on Paul's go and a box roll (unit + binary change, unlike #1349). No re-ship needed.
Interim, untested: Excon lets you replace its resolver (Excon.defaults[:resolv_resolver]); one that resolves with Addrinfo.getaddrinfo (which works today) avoids the getifaddrs call.
Progress, 2026-11-25 late. Built on rootfs-netlink-route-1419, tip a8c20f67.
- Rootfs units allow AFNETLINK;
instance-exec --rootfs --netlink-scopeinstalls a seccomp filter before the tenant starts: NETLINKROUTE sockets only, every other netlink protocol and any netlink socketpair answer EAFNOSUPPORT. Fails closed; a pre-#1419 binary exits on the new flag rather than run a tenant unscoped. - Rootfs probe lines: netlink-scope, netlink-route (getifaddrs's RTMGETLINK + RTMGETADDR dumps), netlink-others (protocols 1-31 refused by the scope), netlink-readonly (a change over route answers EPERM).
- Exposure, as both reviewers put it: a rootfs process can read and watch the box's links, addresses, routes, neighbours and tc state (namespace-wide), and change none of it. Accepted for this fix; the box must never name network objects after tenants.
- Review round 1: Astra and Fable both READY AFTER FIXES, no P1, census APPROVE on every unit. Fixes in a8c20f67; round 2 running.
Still on track for merged by 2026-11-28. After the release (Paul's go) and the box roll, a witness on Tito staging: Socket.ipaddresslist and Resolv.getaddress from carlos run on Classic. No re-ship needed.
Merged to main as 408c387 (CI green; Astra 3 rounds, Fable 2, census approved on #280). Not released.
What ships: rootfs processes can open NETLINKROUTE sockets only, so getifaddrs works (Ruby Socket.ipaddress_list and Resolv, so Excon/fog S3; Node os.networkInterfaces; Go net.Interfaces). Every other netlink protocol and any netlink socketpair stay refused. It needs a release (Paul's go) and a box roll; no re-ship.
Owed before any flagship roll (Astra's accepted disposition; release on dev first):
- [ ] dev box (arm64): rootfs probe reports netlink-scope, netlink-route, netlink-others, netlink-readonly all ok
- [ ] through the real tenant launcher (
carlos runon a rootfs instance): RubySocket.ip_address_listreturns addresses;Socket.new(:NETLINK, :RAW, 4)raises EAFNOSUPPORT;Socket.new(:NETLINK, :RAW, 0)opens - [ ] native arm64 run of TestScopeNetlinkRouteNarrowsNetlinkToRoute and TestNetlinkDeleteCannotChangeTheBox (not skipped)
- [ ] record carlos version, kernel, systemd and architecture with the results here
Then on Tito staging: Resolv.getaddress("s3.eu-west-1.amazonaws.com") and one Excon S3 call from Classic.
Flakes met on the way: #1428 (edge TestReplicaConsoleSocketSelected, activator -race TestWorkerRespawnAsksOwnershipAtItsExec).
Dev witnesses for v0.43.9 (tag v0.43.9 -> main ce9fb958, contains 408c3875). Witness only; nothing changed, nothing merged, flagship untouched.
- [x] native arm64 run of TestScopeNetlinkRouteNarrowsNetlinkToRoute and TestNetlinkDeleteCannotChangeTheBox (not skipped)
- [x] dev box (arm64): rootfs probe reports netlink-scope, netlink-route, netlink-others, netlink-readonly all ok
- [ ] through the real tenant launcher (
carlos runon a rootfs instance): not run on dev: no live owned fleet on dev; to run on Tito staging Classic (already planned there) - [x] carlos version, kernel, systemd and architecture recorded below
A. Root runner, native arm64, as root (run 20261126T004641-2b9461, throwaway t4g.small i-029149cb5cd224519, dev account, eu-west-1). Test binary built from the v0.43.9 tag, package ./internal/instanceexec, -run '^(TestScopeNetlinkRouteNarrowsNetlinkToRoute|TestNetlinkDeleteCannotChangeTheBox)$':
=== RUN TestScopeNetlinkRouteNarrowsNetlinkToRoute
--- PASS: TestScopeNetlinkRouteNarrowsNetlinkToRoute (0.26s)
=== RUN TestNetlinkDeleteCannotChangeTheBox
--- PASS: TestNetlinkDeleteCannotChangeTheBox (0.02s)
PASSNeither skipped (no SKIP line; the only skip paths are "NETLINK_ROUTE already refused" and "no user and network namespace"). Runner versions:
carlos: carlos v0.43.9 (release linux-arm64 binary, sha256 matches SHA256SUMS.txt)
kernel: 6.12.96+deb13-cloud-arm64
systemd: systemd 257 (257.13-1~deb13u1)
arch: aarch64
os: Debian GNU/Linux 13 (trixie), 13.6
user: uid=0(root)Note: as root, TestScopeNetlinkRouteNarrowsNetlinkToRoute drops its own delete=EPERM expectation by design; the read-only property is covered by TestNetlinkDeleteCannotChangeTheBox here (ENODEV inside a CAPNETADMIN namespace, addresses unchanged) and by netlink-readonly in B. Instance confirmed terminated; full log at s3://carlos-dev-640012953448/root-runner/20261126T004641-2b9461/.
B. Rootfs probe on dev boxes running v0.43.9 (witnessed by the release session at 01:17Z, after the dev roll). /run/carlos-control/rootfs-probe.out read netlink-scope ok, netlink-route ok, netlink-others ok, netlink-readonly ok on each of:
- sophie (ip-172-31-14-16, eu-west-1)
- leo (ip-172-31-19-180, eu-west-1)
- dennis (ip-172-31-52-16, eu-west-2)
- both IE group members (ip-172-31-23-14, ip-172-31-4-0)
Demo box-1 runs gVisor and has no rootfs probe. All five are t4g instances (arm64).
C. Ruby through carlos run: not run on dev. A rootfs app needs a fleet its account owns (dev runs apps for other people). Checked every account the operator belongs to on dev (bab, bac, bae, baf, baj, bak, bam, ban) with carlos fleets ls: all fleet boxes are detached except r10r box-1, which shows active at v0.40.2 but has no EC2 instance (no running fleet box in the dev account in eu-west-1, eu-west-2 or us-east-1). The r10r console record looks stale. No fleet was created and no box config changed, so no throwaway app was created (nothing to remove). The Ruby check (Socket.ip_address_list returns addresses; Socket.new(:NETLINK, :RAW, 4) raises Errno::EAFNOSUPPORT; Socket.new(:NETLINK, :RAW, 0) opens) moves to Tito staging Classic, with Resolv.getaddress and the Excon S3 call already planned there.