rootfs netlink: the read-only witness names ifindex 0 (Astra R2 P1)
netlinkDeleteRefused named 127.0.0.2 on lo (index 1): with the CAP_NET_ADMIN it tests for, and that address present, it would have deleted it. It now names interface index 0, which no device has, so a privileged sender gets ENODEV from the device lookup and nothing changes. TestNetlinkDeleteCannotChangeTheBox runs it in a new user and network namespace (CAP_NET_ADMIN there) and wants ENODEV with the addresses unchanged; index 1 would answer EADDRNOTAVAIL. Also Fable R2: the AST guard flags every use of execRootfsLaunch, not only direct calls (P3-b); a root test run skips only the delete check (P3-a); RFS-4-C156 no longer says Go's net.Interfaces uses getifaddrs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/site/rootfs.md+1 −1docs/superpowers/plans/2026-10-24-rootfs-apps-copy.md+3 −3internal/instanceexec/exec_rootfs_scope_test.go+9 −5internal/instanceexec/netlink_route_linux.go+12 −7internal/instanceexec/netlink_route_linux_test.go+47 −5internal/provision/testdata/plan14-root-reads-rootfs-netlink-route-1419.tsv+1 −1
CI cancelled — superseded by a newer push — run details
CI log
=== gate === go: downloading go1.26.10 (linux/arm64) go version go1.26.10 linux/arm64 opentofu: arm64, tofu 1.13.9, aws 6.73.0, archive 2.8.1 tofu: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/tofu_1.13.9_linux_arm64.tar.gz tofu: downloaded, digest verified aws: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/terraform-provider-aws_6.73.0_linux_arm64.zip aws: downloaded, digest verified archive: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/terraform-provider-archive_2.8.1_linux_arm64.zip archive: downloaded, digest verified installed in /tmp/carlos-opentofu-XzuuLv .amadan/test-gate.sh go: downloading github.com/aws/aws-sdk-go-v2 v1.44.0 go: downloading github.com/superfly/ltx v0.5.1 go: downloading golang.org/x/net v0.62.0 go: downloading github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.68.0 go: downloading modernc.org/sqlite v1.55.0 go: downloading github.com/aws/aws-sdk-go-v2/service/costexplorer v1.67.5 go: downloading github.com/benbjohnson/litestream v0.5.14 go: downloading github.com/aws/aws-sdk-go-v2/service/s3 v1.105.0 go: downloading github.com/aws/aws-sdk-go-v2/service/sns v1.43.0 go: downloading github.com/aws/smithy-go v1.28.1 go: downloading github.com/aws/aws-sdk-go-v2/service/acm v1.45.0 go: downloading github.com/aws/aws-sdk-go-v2/service/ec2 v1.324.0 go: downloading github.com/aws/aws-sdk-go-v2/service/iam v1.58.2 go: downloading github.com/aws/aws-sdk-go-v2/service/resourcegroupstaggingapi v1.37.0 go: downloading github.com/aws/aws-sdk-go-v2/service/route53 v1.64.1 go: downloading golang.org/x/sys v0.49.0 go: downloading golang.org/x/crypto v0.58.0 go: downloading github.com/aws/aws-sdk-go-v2/service/sesv2 v1.66.6 go: downloading github.com/pion/logging v0.2.4 go: downloading github.com/pion/stun/v3 v3.1.5 go: downloading github.com/pion/turn/v4 v4.1.4 go: downloading github.com/aws/aws-sdk-go-v2/service/ssm v1.74.0 go: downloading github.com/klauspost/compress v1.20.2 go: downloading github.com/pion/dtls/v3 v3.1.4 go: downloading github.com/pion/transport/v4 v4.0.2 go: downloading github.com/pierrec/lz4/v4 v4.1.22 go: downloading golang.org/x/text v0.43.0 go: downloading github.com/pion/randutil v0.1.0 go: downloading github.com/wlynxg/anet v0.0.5 go: downloading golang.org/x/sync v0.24.0 go: downloading github.com/prometheus/client_golang v1.17.0 go: downloading github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.20.18 go: downloading github.com/lmittmann/tint v1.1.3 go: downloading github.com/prometheus/client_model v0.5.0 go: downloading github.com/prometheus/procfs v0.12.0 go: downloading github.com/cespare/xxhash/v2 v2.3.0 go: downloading github.com/beorn7/perks v1.0.1 go: downloading google.golang.org/protobuf v1.36.10 go: downloading github.com/prometheus/common v0.45.0 go: downloading github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 go: downloading golang.org/x/crypto/x509roots/fallback v0.0.0-20260209214922-2f26647a795e go: downloading modernc.org/sqlite v1.55.0 go: downloading github.com/klauspost/compress v1.20.2 go: downloading github.com/aws/aws-sdk-go-v2/service/ecs v1.91.0 go: downloading github.com/pierrec/lz4/v4 v4.1.22 go: downloading modernc.org/libc v1.74.1 go: downloading modernc.org/libc v1.74.1 go: downloading github.com/google/uuid v1.6.0 go: downloading modernc.org/mathutil v1.7.1 amadan: job cancelled — a newer push superseded it
Intent
<task-notification> <task-id>b4ulqhxi8</task-id> <tool-use-id>toolu_01Eiihav3hVPm4543VGs8tYz</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/07c1c3c2-c3f5-4715-929e-caf930c5532c/tasks/b4ulqhxi8.output</output-file> <status>completed</status> <summary>Background command "Run Fable review round 2" completed (exit code 0)</summary> </task-notification>
<task-notification> <task-id>b37yzsqpx</task-id> <tool-use-id>toolu_017QedJbw5YcN3avyoaqEE3Q</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/07c1c3c2-c3f5-4715-929e-caf930c5532c/tasks/b37yzsqpx.output</output-file> <status>completed</status> <summary>Background command "Wait for Astra round 2 report" completed (exit code 0)</summary> </task-notification>
<task-notification> <task-id>bb3z5lzoz</task-id> <tool-use-id>toolu_01Q4eXnpZYHzt9qrXjxeAvua</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/07c1c3c2-c3f5-4715-929e-caf930c5532c/tasks/bb3z5lzoz.output</output-file> <status>completed</status> <summary>Background command "Run Astra review round 2" completed (exit code 0)</summary> </task-notification>
Attributed to this commit: 19.5 g CO₂e (2,266,534 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on rootfs-netlink-route-1419, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.
diff --git a/docs/site/rootfs.md b/docs/site/rootfs.md| index 5d55476d0..a385c82d7 100644 |
| --- a/docs/site/rootfs.md |
| +++ b/docs/site/rootfs.md |
| @@ -77,7 +77,7 @@ carlos ship --check warns when a process runs Node, Bun or Deno and the release |
| An instance can reach public addresses, such as an object store or a managed database's public endpoint. It cannot reach a private address unless a system operator allows it for the app with carlos apps set --egress-allow, and it never reaches the box it runs on or the cloud's metadata service. |
| -A process can read the box's network setup, such as its interfaces, addresses and routes, but cannot change it. So getifaddrs works, and with it Ruby's Socket.ip_address_list and Resolv, Node's os.networkInterfaces and Go's net.Interfaces. Other netlink sockets are refused. |
| +A process can read the box's network setup, such as its interfaces, addresses and routes, but cannot change it. So getifaddrs works, and with it Ruby's Socket.ip_address_list and Resolv and Node's os.networkInterfaces. Go's net.Interfaces works too. Other netlink sockets are refused. |
| ## The visitor's address |
diff --git a/docs/superpowers/plans/2026-10-24-rootfs-apps-copy.md b/docs/superpowers/plans/2026-10-24-rootfs-apps-copy.md| index ba8aa0839..fa81048df 100644 |
| --- a/docs/superpowers/plans/2026-10-24-rootfs-apps-copy.md |
| +++ b/docs/superpowers/plans/2026-10-24-rootfs-apps-copy.md |
| @@ -301,7 +301,7 @@ From the plan: Placeholders: `<app>` an app; `<fleet>` a fleet name; `<region>` |
| | RFS-4-C55 | docs/site/rootfs.md (fact, R11) | Memory is never writable and executable at once, unless the release is shipped with carlos ship --jit. A JIT compiler needs that: Node, Bun and Deno, the JVM, Ruby's YJIT and PHP's opcache JIT. Ruby, PHP and Python run well without one. | approved | |
| | RFS-4-C56 | docs/site/rootfs.md | Network | approved | |
| | RFS-4-C57 | docs/site/rootfs.md | An instance can reach public addresses, such as an object store or a managed database's public endpoint. It cannot reach a private address unless a system operator allows it for the app with carlos apps set --egress-allow, and it never reaches the box it runs on or the cloud's metadata service. | approved | |
| -| RFS-4-C156 | docs/site/rootfs.md (fact, rootfs-netlink-route-1419) | A process can read the box's network setup, such as its interfaces, addresses and routes, but cannot change it. So getifaddrs works, and with it Ruby's Socket.ip_address_list and Resolv, Node's os.networkInterfaces and Go's net.Interfaces. Other netlink sockets are refused. | approved | |
| +| RFS-4-C156 | docs/site/rootfs.md (fact, rootfs-netlink-route-1419) | A process can read the box's network setup, such as its interfaces, addresses and routes, but cannot change it. So getifaddrs works, and with it Ruby's Socket.ip_address_list and Resolv and Node's os.networkInterfaces. Go's net.Interfaces works too. Other netlink sockets are refused. | approved | |
| | RFS-4-C148 | docs/site/rootfs.md (rails-guide-run-console) | Commands and consoles | approved | |
| | RFS-4-C149 | docs/site/rootfs.md (rails-guide-run-console) | carlos run runs a one-off command on an instance: a data fix, a rake task, an artisan or manage.py command. It runs inside the instance's image, in web's working_dir, with web's environment and the same database. Its output comes back to your terminal, and carlos exits with the command's own status. | approved | |
| | RFS-4-C150 | docs/site/rootfs.md (rails-guide-run-console) | A command with a slash in it, like bin/rails, is found from web's working_dir. A bare name, like php, is found along the image's PATH. Commands are not run through a shell, so for a pipe or a variable, run sh -c with the line in quotes. | approved | |
| @@ -613,8 +613,8 @@ then ", or a link to one" added when Astra R1 kept a symlinked hosts |
| file's target. |
| RFS-4-C156 (2026-11-25, #1419: rootfs processes may read NETLINK_ROUTE) |
| was reviewed by a Luna pass under Paul's delegation; its revision was |
| -applied with one fact corrected (getifaddrs lists interfaces and |
| -addresses, not routes). |
| +applied with two facts corrected (getifaddrs lists interfaces and |
| +addresses, not routes; Go's net.Interfaces does not use getifaddrs). |
| Recounted from the rows on 2026-10-30 (Plan 6 amendment, Astra R1 P2-7); |
| the earlier counts had not followed Plans 1 and 4's later rows. |
diff --git a/internal/instanceexec/exec_rootfs_scope_test.go b/internal/instanceexec/exec_rootfs_scope_test.go| index e7f4de10f..93da67ed0 100644 |
| --- a/internal/instanceexec/exec_rootfs_scope_test.go |
| +++ b/internal/instanceexec/exec_rootfs_scope_test.go |
| @@ -65,16 +65,20 @@ func TestEveryRootfsLaunchIsScoped(t *testing.T) { |
| return true |
| } |
| stack = append(stack, n) |
| - call, ok := n.(*ast.CallExpr) |
| - if !ok { |
| + // Every use of the name, not only direct calls: a value |
| + // (launch := execRootfsLaunch) would escape a call-only guard |
| + // (Fable R2 P3-b). The declaration's own name is not a use. |
| + id, ok := n.(*ast.Ident) |
| + if !ok || id.Name != "execRootfsLaunch" { |
| return true |
| } |
| - if id, ok := call.Fun.(*ast.Ident); !ok || id.Name != "execRootfsLaunch" { |
| + if fd, ok := stack[len(stack)-2].(*ast.FuncDecl); ok && fd.Name == id { |
| return true |
| } |
| calls++ |
| - if !insideScopedStart(stack) { |
| - t.Errorf("%s calls execRootfsLaunch outside rootfsStart(ScopeNetlinkRoute, func ...)", file) |
| + call, isCall := stack[len(stack)-2].(*ast.CallExpr) |
| + if !isCall || call.Fun != ast.Expr(id) || !insideScopedStart(stack) { |
| + t.Errorf("%s uses execRootfsLaunch other than as a call inside rootfsStart(ScopeNetlinkRoute, func ...)", file) |
| } |
| return true |
| }) |
diff --git a/internal/instanceexec/netlink_route_linux.go b/internal/instanceexec/netlink_route_linux.go| index 22c0829b5..f1468be93 100644 |
| --- a/internal/instanceexec/netlink_route_linux.go |
| +++ b/internal/instanceexec/netlink_route_linux.go |
| @@ -109,12 +109,17 @@ func netlinkSocketOpen(proto int) error { |
| return unix.Close(fd) |
| } |
| -// netlinkDeleteRefused asks the kernel to delete an address that does not |
| -// exist (127.0.0.2/32 on lo, index 1) and answers the kernel's error. |
| -// rtnetlink checks CAP_NET_ADMIN before it looks for the address, so a |
| -// process without it gets EPERM, and one with it gets an error for the |
| -// missing address: either way nothing on the box changes. Only the rootfs |
| -// probe calls it (netlink-readonly). |
| +// netlinkDeleteRefused asks the kernel to delete 127.0.0.2 from interface |
| +// index 0 and answers the kernel's error. No device ever has index 0 (the |
| +// kernel allocates positive indexes), so the request cannot change the |
| +// box even when the capability it tests for is present (Astra R2 P1): |
| +// rtnetlink checks CAP_NET_ADMIN first, so a process without it gets |
| +// EPERM, and one with it gets ENODEV from inet_rtm_deladdr's device |
| +// lookup. Only the rootfs probe calls it (netlink-readonly). |
| +// deleteTargetIndex is the interface netlinkDeleteRefused names: 0, which |
| +// no device has. TestNetlinkDeleteCannotChangeTheBox pins it. |
| +const deleteTargetIndex = 0 |
| + |
| func netlinkDeleteRefused() error { |
| fd, err := unix.Socket(unix.AF_NETLINK, unix.SOCK_RAW|unix.SOCK_CLOEXEC, unix.NETLINK_ROUTE) |
| if err != nil { |
| @@ -135,7 +140,7 @@ func netlinkDeleteRefused() error { |
| ifa := (*unix.IfAddrmsg)(unsafe.Pointer(&msg[unix.SizeofNlMsghdr])) |
| ifa.Family = unix.AF_INET |
| ifa.Prefixlen = 32 |
| - ifa.Index = 1 |
| + ifa.Index = deleteTargetIndex |
| attr := msg[unix.SizeofNlMsghdr+unix.SizeofIfAddrmsg:] |
| *(*uint16)(unsafe.Pointer(&attr[0])) = 8 |
| *(*uint16)(unsafe.Pointer(&attr[2])) = unix.IFA_LOCAL |
diff --git a/internal/instanceexec/netlink_route_linux_test.go b/internal/instanceexec/netlink_route_linux_test.go| index 4e5bc0b46..c5c02b45f 100644 |
| --- a/internal/instanceexec/netlink_route_linux_test.go |
| +++ b/internal/instanceexec/netlink_route_linux_test.go |
| @@ -26,6 +26,16 @@ func TestNetlinkScopeHelper(t *testing.T) { |
| if stage == "" { |
| t.Skip("helper process only") |
| } |
| + if stage == "privileged-delete" { |
| + // In a new user and network namespace this process holds |
| + // CAP_NET_ADMIN over the namespace: the delete must reach the |
| + // device lookup and fail there, leaving the addresses alone. |
| + before, _ := syscall.NetlinkRIB(syscall.RTM_GETADDR, syscall.AF_UNSPEC) |
| + err := netlinkDeleteRefused() |
| + after, _ := syscall.NetlinkRIB(syscall.RTM_GETADDR, syscall.AF_UNSPEC) |
| + fmt.Printf("delete=%v same=%v\n", strings.ReplaceAll(fmt.Sprint(err), " ", "_"), string(before) == string(after)) |
| + os.Exit(0) |
| + } |
| // A second OS thread, started and parked before the scope, opens a |
| // sock_diag socket after it: TSYNC must have reached it. |
| ready, scoped, done := make(chan struct{}), make(chan struct{}), make(chan string) |
| @@ -127,9 +137,9 @@ func netlinkFields(line string) map[string]string { |
| // and unix answer as they did before the scope, and an exec'd child keeps |
| // all of it. |
| func TestScopeNetlinkRouteNarrowsNetlinkToRoute(t *testing.T) { |
| - if os.Geteuid() == 0 { |
| - t.Skip("as root the delete check would reach the kernel's address lookup") |
| - } |
| + // As root the delete check would reach the kernel's address lookup: |
| + // only that expectation is skipped. |
| + root := os.Geteuid() == 0 |
| before := netlinkFields(strings.TrimSpace(runNetlinkHelper(t, "plain"))) |
| if before["route"] != "open" { |
| t.Skipf("this environment refuses NETLINK_ROUTE already: %v", before) |
| @@ -142,12 +152,16 @@ func TestScopeNetlinkRouteNarrowsNetlinkToRoute(t *testing.T) { |
| eaf := strings.ReplaceAll(syscall.EAFNOSUPPORT.Error(), " ", "_") |
| for i, line := range []string{lines[0], strings.TrimPrefix(lines[1], "inherited ")} { |
| f := netlinkFields(line) |
| - for k, want := range map[string]string{ |
| + wants := map[string]string{ |
| "route": "open", "route-dgram": "open", "phigh": eaf, "pair4": eaf, "pair0": eaf, |
| "thread": eaf, |
| "delete": strings.ReplaceAll(syscall.EPERM.Error(), " ", "_"), |
| "inet": before["inet"], "unix": before["unix"], |
| - } { |
| + } |
| + if root { |
| + delete(wants, "delete") |
| + } |
| + for k, want := range wants { |
| if f[k] != want { |
| t.Errorf("line %d: %s=%s, want %s", i, k, f[k], want) |
| } |
| @@ -250,3 +264,31 @@ func TestNetlinkRouteFilterProgram(t *testing.T) { |
| } |
| } |
| } |
| + |
| +// Astra R2 P1: with CAP_NET_ADMIN (a new user and network namespace, so |
| +// nothing real is at stake) the read-only witness still changes nothing: |
| +// it names interface index 0, which no device has, so the kernel answers |
| +// ENODEV and the namespace's addresses are as they were. ENODEV is the |
| +// device lookup's answer, made before any address is looked at; naming |
| +// lo (index 1) instead would answer EADDRNOTAVAIL here, so the test also |
| +// catches a return to a real interface. |
| +func TestNetlinkDeleteCannotChangeTheBox(t *testing.T) { |
| + if deleteTargetIndex != 0 { |
| + t.Fatalf("netlinkDeleteRefused names interface %d; it must name 0, which no device has", deleteTargetIndex) |
| + } |
| + cmd := exec.Command(os.Args[0], "-test.run=^TestNetlinkScopeHelper$") |
| + cmd.Env = append(os.Environ(), netlinkHelperEnv+"=privileged-delete") |
| + cmd.SysProcAttr = &syscall.SysProcAttr{ |
| + Cloneflags: syscall.CLONE_NEWUSER | syscall.CLONE_NEWNET, |
| + UidMappings: []syscall.SysProcIDMap{{ContainerID: 0, HostID: os.Getuid(), Size: 1}}, |
| + GidMappings: []syscall.SysProcIDMap{{ContainerID: 0, HostID: os.Getgid(), Size: 1}}, |
| + } |
| + out, err := cmd.Output() |
| + if err != nil { |
| + t.Skipf("no user and network namespace here: %v", err) |
| + } |
| + enodev := strings.ReplaceAll(syscall.ENODEV.Error(), " ", "_") |
| + if got := strings.TrimSpace(string(out)); got != "delete="+enodev+" same=true" { |
| + t.Errorf("privileged delete: %q, want delete=%s same=true", got, enodev) |
| + } |
| +} |
diff --git a/internal/provision/testdata/plan14-root-reads-rootfs-netlink-route-1419.tsv b/internal/provision/testdata/plan14-root-reads-rootfs-netlink-route-1419.tsv| index 04a4ac8a6..921ba57c4 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-rootfs-netlink-route-1419.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-rootfs-netlink-route-1419.tsv |
| @@ -16,4 +16,4 @@ internal/host/units/carlos-instance-rootfs-worker@.service external legacy accep |
| internal/host/units/carlos-instance-rootfs@.service external legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-2;identity=a rootfs unit template (embedded in the carlos binary, installed under /etc/systemd/system by root's unit install as the other templates are, applied by PID 1 as root; its process runs as user carlos);basis=root-input (J4, as carlos-instance@.service): new (rootfs Plan 2 Task 4): the run unit of a rootfs instance (ExecStart= the trampoline with --rootfs run, ExecStopPost= instance-exit --rootfs run), Slice=carlos-instances-%i.slice, binding /run/carlos-control/exe/%I/rootfs/run/. The template carries the binary template's hardening block restated for an image root (ProtectSystem=strict, the /data, /run/carlos and /opt/carlos tmpfs mounts read-only, PrivateDevices=, PrivateIPC=, ProtectControlGroups=strict, PrivatePIDs=, RestrictNamespaces=, NoNewPrivileges=, an empty CapabilityBoundingSet=, the IPAddressDeny= list, MemoryDenyWriteExecute=yes) plus RootImage= with RootImageOptions=ro,nosuid,nodev; what PID 1 mounts for it: the image, a link root's ensureRootfsExe made under /run/carlos-control/exe (root's, never in any instance's namespace) to the image validateStagedImage checked; root's launch.json and resolv.conf copy from the same root-only directory, read-only; the platform binary, read-only; the instance's own two directories. Provenance: the RootImage= path is fixed and root-controlled (a link root made to the image validateStagedImage checked), but the image's contents are tenant-built: PID 1 and the kernel mount a tenant-produced squashfs (read-only, nosuid, nodev) as the unit's root, after root has checked its bytes against root's own staged manifest; that mount is the new authority this template carries. The tenant also writes its own two directories; it names no path PID 1 or root opens;rev3=census-ruling-instance-syscall-filter;basis=the tenant syscall filter (#527 Q5): three [Service] lines after SystemCallArchitectures=native (SystemCallFilter=@system-service; SystemCallFilter=~@keyring io_uring_setup io_uring_enter io_uring_register userfaultfd; SystemCallErrorNumber=ENOSYS), applied by PID 1 as a seccomp filter on the unit's own process as carlos; no bind source, Exec line, user, mount or path read by root added, with its comment, inside the restated rootfs block (byte-identical across the rootfs units);rev3=census-ruling-w6-ingress-drain;basis=adds Before=carlos-edge-drain.service (with a comment). Ordering only; no read added.;rev3=census-ruling-rootfs-netlink-route-1419;basis=the restated rootfs block's RestrictAddressFamilies= gains AF_NETLINK (#1419), with a comment, byte-identical across the six rootfs units; applied by PID 1 to the unit's own process as carlos (empty CapabilityBoundingSet=, NoNewPrivileges=), narrowed to NETLINK_ROUTE by instance-exec --rootfs and the rootfs probe's seccomp scope. No bind source, Exec line, user, mount or path read by root added. Round-1 fix: the five tenant units' ExecStart= add --netlink-scope, a constant flag instance-exec accepts with --rootfs (a pre-#1419 binary exits on it); the block comment says what route lets a tenant read file:external@0 4459dcc0c3b3a7fc1b75194769f9ce46ffa598d844a1547b487704f76620daf9 |
| internal/instanceexec/netlink_route_linux.go ScopeNetlinkRoute legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-netlink-route-1419;basis=new (#1419): installs a seccomp filter on its own process (carlos, inside a rootfs unit, every thread via TSYNC) answering socket(AF_NETLINK, any type, protocol other than NETLINK_ROUTE) with EAFNOSUPPORT; nonnative and x32 calls ENOSYS. Its one read is the seccomp syscall; it opens no path and takes no tenant input; it only narrows what the unit allows. Not run by root. Round-1 fix: socketpair(AF_NETLINK, ...) is refused too file:Syscall@527 2a49962af9cb77dc3ef4e34514f951ae03d001c1466cfae3a749eb4e1b6d4ebc |
| @coverage internal/host/units 8e2d527d528d57f1a1970c6789d6f443dc2efcba64b8a243e10f72d02bae5c00 |
| -@coverage internal/instanceexec 23e7c54396aff424ddb2d7249357ac26691b3368e5a525eced27dec6a04655e7 |
| +@coverage internal/instanceexec d9b267b002ec3a8f20a06ec8123d76bb6a7c8ae5316df663456f1b8cea1625c7 |