You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
security: detect owner locks across every Codex home #10
lockFilesOpenedByProcess() currently filters open lock files to the selected CODEX_HOME/thread-writer-locks directory. A Codex process can hold native thread locks from another default, configured, or Orca Codex home without those locks being counted.
Security impact
The owner may be reported as holding exactly one thread lock even though it owns additional locks in another Codex home. Sending SIGTERM would then affect unrelated threads.
Required behavior
Determine all native Codex thread-writer lock files opened by the candidate PID across known and discovered Codex homes. Unlock must proceed only when the complete set contains exactly the intended lock.
Canonicalize directories and paths without following an attacker-controlled lock-file symlink as trusted evidence. Unreadable or ambiguous home inventories must fail closed.
Tests
Cover:
one PID holding locks in two different Codex homes
default and Orca account homes
duplicate/hard-linked rollout files that do not imply duplicate locks
Activity