Skip to content

feat(doctor): report whether the process guard is in force - #691

Merged
ajianaz merged 3 commits into
developfrom
feat/doctor-process-guard
Nov 13, 2026
Merged

ajianaz merged 3 commits into
developfrom
feat/doctor-process-guard

Conversation

@ajianaz

@ajianaz ajianaz commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

What

tole doctor prints one line saying whether the #675 process guard is in force. It shows process guard: ✓ non-dumpable when same-user children cannot read tole's /proc/<pid>/environ or memory, and ! dumpable otherwise. The line appears on Linux only and names no secret.

Why

The owner asked for it after #687 merged: PR_SET_DUMPABLE is now in force, and an owner should be able to see that the guard is active without reading /proc by hand.

Changes

  • doctor::process_guard_line(Option<bool>): a pure function over tole_core::process_guard::inspection_denied(). It returns None (no line) where the platform has no such switch. run_cli prints it after the secrets report.
  • Threat model, "parent process" row: names the doctor line.
  • CHANGELOG [Unreleased] / Added: one entry.

Testing

  • doctor::tests::the_process_guard_line_says_which_state_and_nothing_elsewhere: both states, and no line off Linux.
  • tests/doctor_ecosystem.rs::doctor_reports_the_process_guard (real binary, Linux): the output contains process guard: ✓ non-dumpable.
  • Mutation check: with the deny_inspection call in main disabled, the end-to-end test fails and the doctor prints process guard: ! dumpable: ....
  • Gates on the merged head: cargo fmt --all --check, cargo clippy --workspace --all-targets --all-features -- -D warnings, cargo test --workspace, cargo test -p tole-core --no-default-features, cargo test -p tole-cli --no-default-features --features shell-tools, and cora review --no-llm --base origin/develop (no issues).

Refs #675

@github-actions

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

# Conflicts:
#	docs/threat-model.md
@ajianaz
ajianaz merged commit 0c10e58 into develop Nov 13, 2026
15 checks passed
@ajianaz
ajianaz deleted the feat/doctor-process-guard branch November 20, 2026 08:36
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.

2 participants