Skip to content

Confine gate procfs access#143

Merged
chasebryan merged 1 commit into
mainfrom
agent/confine-gate-procfs
Jul 16, 2026
Merged

Confine gate procfs access#143
chasebryan merged 1 commit into
mainfrom
agent/confine-gate-procfs

Conversation

@chasebryan

Copy link
Copy Markdown
Owner

Summary

  • replace broad private procfs admission with read-only access to only the gate launcher's PID-1 subtree and private System V IPC tables
  • assert global kernel/CPU metadata and dynamic procfs self paths remain unreadable
  • update protected policy contracts, regression mutations, and boundary documentation

Validation

  • scripts/ci/check-repository
  • 288 Python tests
  • 277 debug Rust tests and 277 release Rust tests
  • two relocated reproducible release builds
  • 7 Rust doc tests

@chasebryan
chasebryan marked this pull request as ready for review July 16, 2026 04:09
@chasebryan
chasebryan merged commit 1099311 into main Jul 16, 2026
7 checks passed
@chasebryan
chasebryan deleted the agent/confine-gate-procfs branch July 16, 2026 04:09

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cfed34c7cb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +36 to +40
"run_cargo /bin/bash --norc -p -c 'gate_process_root=/proc/1;",
"for descriptor in \"$$gate_process_root\"/fd/*;",
"for hidden_proc_path in /proc/cpuinfo /proc/meminfo /proc/self/status /proc/version;",
"\"$$(/usr/bin/readlink -- \"$$gate_process_root/ns/ipc\")\" != \"$$6\"",
"\"$$(/usr/bin/sed -n \"2p\" \"$$gate_process_root/net/route\")\"",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve the full isolation probe in the contract

The new contract replaces the previous full run_cargo isolation command with a few substrings, but none of these fragments require the runtime assertions for empty capability sets, NoNewPrivs, restored uid/gid/hostname, or stdio fd modes. _validate_makefile_entrypoint only counts these fragments, so a Makefile that deletes those hardening assertions while leaving these five substrings still reports no make.compiler_environment_contract finding, letting policy validation pass after the checks this contract is meant to freeze are removed.

Useful? React with 👍 / 👎.

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