← Back to Pull requests

fix lane: run-account checks and kills that hold on Ubuntu 26.04 #26

Merged
askalf merged 4 files (337 lines) on Oct 06, 2026 19:57 UTC
View on GitHub
askalf askalf commented on Oct 06, 2026 18:21 UTC
Author

Why

ubuntu-latest becomes Ubuntu 26.04 from 2026-10-19 (actions/runner-images#14748). 26.04 replaces GNU coreutils with uutils (0.10.0) and sudo with sudo-rs (0.2.13). A probe run of this repo's CI on ubuntu-26.04 failed the run-account job, and two problems turned up in the fix lane's run-account handling. Both also matter for any exec host that moves to 26.04, because a guard that answers wrong there is a security problem.

1. /usr/bin/test ignores ACLs. uutils' test reads the mode bits only. The probe made a mode-0700 directory and a 0600 file, then gave a second account access through ACL entries:

  • The account could really write the directory.

  • On 26.04, /usr/bin/test -w and /usr/bin/test -r said no to both.

  • On 24.04 they said yes.
  • Four guards run test as the run account:

  • Checkout writable (line 1001): the checkout is writable only through an ACL, so every run was refused on 26.04. That is the CI failure.

  • Key file and brief not readable, key socket not connectable, .git not writable: an ACL that opened any of these to the run account would read as closed, so the guard would pass.
  • 2. kill -KILL -1 sends nothing under sudo-rs. procps' /usr/bin/kill (4.0.4 on both images), run through sudo-rs, fails with failed to parse argument: '(null)' before it signals anything. The probe started two sleeps as the account:

  • On 26.04, /usr/bin/kill -KILL -1 left both running.

  • On 24.04 it stopped them.
  • In settle() this meant a command's processes outlived it. A detached chain hopping to new PIDs was still writing after the run, because between hops ps can see none.

    Fix

  • The four guards use bash's builtin test through runCan(flag, path), which calls faccessat and so asks the kernel. bash is not replaced on 26.04.

  • settle() uses bash's builtin kill, which calls kill(2) itself.

  • The probe confirmed both on both images:

  • - bash's test -r/-w honour the ACL.
    - bash's kill -KILL -1 stops the account's processes.
  • The sudo stand-in in fix.test.mjs understands the new forms.

  • The tests that check a refused account is never sent kill -1 now look for the new form. Without that change they would pass whether or not the kill was sent.
  • Tests

  • Locally on 24.04 tooling: fix.test.mjs 331 pass, and 341 with REDLINE_TEST_RUN_AS, as root and as a non-root exec account.

  • On ubuntu-26.04 (the probe branch with this change): the real run-account tests pass 340 of 341. The one failure is the probe's own label change.

  • Without the change on 26.04: 9 real-account tests failed on the first probe run. After the ACL commit alone, the hopping-process test still failed.
  • Diff: 337 lines (+252 / -85) across 4 files Reviewer: None requested Review duration: 96m
    All Vouch review confidence checks passed
    Residual risk 0.41 = Change Risk (0.74) × (1 − Review Confidence (0.44)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.74 · 337 lines diff across 4 files
    0.74
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 10%
    44%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.348
    Shallow Review Depth shallow_review_depth
    0.344
    Wip Merged wip_merged
    0.150
    No Reviewer Assigned no_reviewer_assigned
    0.120
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #26"
    general weight: 0.35
    Reviewers
    None requested
    Assignees
    askalf askalf
    Labels
    risk: medium confidence: 44.2% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 74.2% (HIGH) · Higher = larger blast radius
    74.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 44.2% · Lower = rushed or shallow review
    44.2%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 41.4% · Moderate risk
    41.4%
    Repository