Skip to content

security: prevent concurrent daemon ownership - #220

Merged
tcballard merged 1 commit into
mainfrom
codex/daemon-single-instance
Sep 4, 2026
Merged

tcballard merged 1 commit into
mainfrom
codex/daemon-single-instance

Conversation

@tcballard

Copy link
Copy Markdown
Owner

Summary

  • hold an advisory single-instance lock before stale IPC socket cleanup
  • refuse a second live daemon instead of unlinking its endpoint
  • document the account-local IPC trust boundary without claiming same-UID app authentication
  • add a regression test for endpoint ownership

Security boundary

This prevents accidental and concurrent OmaChat daemon instances. Linux user-level socket permissions do not distinguish arbitrary applications running as the same UID; deployments must sandbox untrusted applications outside the account runtime directory.

Validation

Not run in this session. The change includes a focused regression test and should pass the repository's full gate before merge.

@tcballard
tcballard force-pushed the codex/nip29-room-members branch from 687cc67 to 172d952 Compare September 4, 2026 07:08
@tcballard
tcballard changed the base branch from codex/nip29-room-members to main September 4, 2026 07:21
@tcballard
tcballard force-pushed the codex/daemon-single-instance branch 3 times, most recently from bd14801 to a257225 Compare September 4, 2026 07:27
@tcballard
tcballard force-pushed the codex/daemon-single-instance branch from a257225 to 3e1c961 Compare September 4, 2026 07:31
@tcballard
tcballard merged commit 6551fa6 into main Sep 4, 2026
6 checks passed
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