Skip to content

Harden drop-sudo on Linux - #120

Draft
viyatb-oai wants to merge 4 commits into
mainfrom
codex/viyatb/harden-drop-sudo
Draft

Harden drop-sudo on Linux#120
viyatb-oai wants to merge 4 commits into
mainfrom
codex/viyatb/harden-drop-sudo

Conversation

@viyatb-oai

@viyatb-oai viyatb-oai commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • discover group-authorized root-owned Linux service sockets under /run when applying drop-sudo
  • remove the corresponding supplementary group memberships and restrict discovered sockets
  • verify the boundary with a generic service-socket fixture on a hosted Linux runner and document the job-wide behavior change

Why

drop-sudo should also remove group-authorized access to existing root-owned service endpoints while preserving the default runner identity and workspace behavior.

Impact

Existing group-authorized root-owned service sockets under /run are restricted when drop-sudo runs. Workflows that need those endpoints after the action should move that work to a separate job or use a deliberately configured unprivileged user.

Validation

  • corepack pnpm test
  • corepack pnpm run check
  • parsed action.yml and .github/workflows/ci.yml as YAML
  • git diff --check
  • hosted Verify TypeScript Build job, including the service-socket regression fixture

viyatb-oai and others added 4 commits July 16, 2026 16:57
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
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.

1 participant