Skip to content

Fix drop-sudo socket ACL verification on Ubuntu 26.04 - #192

Open
ww-oai wants to merge 2 commits into
mainfrom
codex/acl-aware-socket-check
Open

ww-oai wants to merge 2 commits into
mainfrom
codex/acl-aware-socket-check

Conversation

@ww-oai

@ww-oai ww-oai commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Ubuntu 26.04’s /usr/bin/test -w reports a mode-0666 socket as writable even when a named-user ACL denies the runner access. That makes drop-sudo stop at the D-Bus socket after successfully applying the ACL.

Use Node’s fs.access(..., W_OK) on the pinned socket descriptor. Keep setpriv to run the probe with each runner identity. The existing integration tests now use Bash’s ACL-aware builtin for their independent permission assertions.

Reproduced the D-Bus failure on main in an Ubuntu 26.04.1 container and verified that the updated bundle completes against the same socket. TypeScript passed. All 182 tests passed in the container, including the privileged drop-sudo scenarios.

Fixes #188.

@ww-oai
ww-oai marked this pull request as ready for review November 13, 2026 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

drop-sudo fails on Ubuntu 26.04

1 participant