Skip to content

feat(simaudio): publish SO_PEERCRED stream-to-PID map in simaudio-streams.json - #13

Merged
Apdelrahman1911 merged 1 commit into
mainfrom
feat/simaudio-stream-pid-attribution
Dec 6, 2026
Merged

Apdelrahman1911 merged 1 commit into
mainfrom
feat/simaudio-stream-pid-attribution

Conversation

@Apdelrahman1911

Copy link
Copy Markdown

Publishes an atomic <state>/simaudio-streams.json (schema: 1, mode 0600) mapping each active simaudio-tap.sock output stream ID to its kernel-authenticated SO_PEERCRED host_pid, sample rate, and channels.

  • Preserves 100% backward compatibility with existing simaudio-tap.sock 8-byte OPEN readers (share/audio.rs, veyra_observations.py) and simaudio-out/<pid> jetsam markers.
  • Registers each stream before OPEN and removes it after CLOSE, avoiding tap-open/metadata races.
  • Adds unit tests for atomic open/close tracking and SO_PEERCRED peer_pid() resolution.

@Apdelrahman1911
Apdelrahman1911 merged commit 7c5cc16 into main Dec 6, 2026
2 checks passed
@Apdelrahman1911
Apdelrahman1911 deleted the feat/simaudio-stream-pid-attribution branch December 6, 2026 07:51
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