Skip to content

Drop gate capability sets#135

Merged
chasebryan merged 1 commit into
mainfrom
agent/drop-gate-capability-sets
Jul 16, 2026
Merged

Drop gate capability sets#135
chasebryan merged 1 commit into
mainfrom
agent/drop-gate-capability-sets

Conversation

@chasebryan

Copy link
Copy Markdown
Owner

Summary

  • drop every inheritable, permitted, effective, bounding, and ambient Linux capability before copied gate code executes
  • retain user-namespace capabilities only for namespace setup, then remove them with setpriv
  • enforce the same drop in the hosted sudo fallback and assert all five empty sets at runtime
  • protect the boundary with exact Makefile contracts, weakening-mutation tests, policy 0.2.85, and updated security/operations documentation

Verification

  • scripts/ci/check-repository
    • policy 0.2.85, zero findings
    • 287 Python tests
    • Rust debug and release: 162 library, 74 CLI unit, 32 integration, and 9 S3a conformance tests each
    • 7 Rust documentation tests
    • byte-identical two-root release builds

Remaining boundary

The kernel, namespace enforcement, passwordless namespace-setup policy, and admitted sudo, unshare, and setpriv binaries remain trusted host inputs. Hosted Required CI must exercise the fallback path before merge.

@chasebryan
chasebryan marked this pull request as ready for review July 16, 2026 00:33
@chasebryan
chasebryan merged commit 7b1ad8b into main Jul 16, 2026
6 checks passed
@chasebryan
chasebryan deleted the agent/drop-gate-capability-sets branch July 16, 2026 00:34
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