Skip to content

Replace pid in shared memory with actual bitpattern - #830

Draft
NicolasFussberger wants to merge 1 commit into
simplify_report_running_handshakefrom
report_running_bitpattern
Draft

NicolasFussberger wants to merge 1 commit into
simplify_report_running_handshakefrom
report_running_bitpattern

Conversation

@NicolasFussberger

Copy link
Copy Markdown
Contributor

The pid in shared memory actually served as an "expected bitpattern" so a client opening the shared memory from fd can be sure that its really the shared memory from LM (and not some file the process happed to have open with this fd, if it was not started by LM).

This was actually a poor saveguard and it here replaced with an explicit bitpattern.

@NicolasFussberger
NicolasFussberger force-pushed the report_running_bitpattern branch from 9f4340f to 3c6ff46 Compare October 26, 2026 06:48

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant