Skip to content

fix: invert privilege drop — su before nono, not after#35

Merged
heskew merged 2 commits intomainfrom
cp33b-supervisor
Feb 27, 2026
Merged

fix: invert privilege drop — su before nono, not after#35
heskew merged 2 commits intomainfrom
cp33b-supervisor

Conversation

@tps-flint
Copy link
Copy Markdown
Contributor

Security improvement from Sherlock review request.

Previously: nono run --allow-command su -- su agent-lead -c 'tps-agent'
Now: su agent-lead -c 'nono run ... -- tps-agent'

This means:

  • nono never needs --allow-command su
  • Agents cannot use su at all (nono blocks it by default)
  • Landlock policy is applied by the unprivileged agent user, not root
  • Tighter attack surface

Also removed premature --allow for proxy socket and secrets paths (not implemented yet).

Tested: Agent starts, PID file written, Landlock sandbox active, mail dirs created.

@heskew heskew merged commit 68800e6 into main Feb 27, 2026
10 checks passed
@heskew heskew deleted the cp33b-supervisor branch February 27, 2026 00:57
@tps-flint tps-flint mentioned this pull request Feb 27, 2026
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.

3 participants