Skip to content

fix: guard runtime IPC by owner PID#158

Merged
jpnurmi merged 4 commits into
getsentryfrom
jpnurmi/fix/crashpad-pid
Jul 10, 2026
Merged

fix: guard runtime IPC by owner PID#158
jpnurmi merged 4 commits into
getsentryfrom
jpnurmi/fix/crashpad-pid

Conversation

@jpnurmi

@jpnurmi jpnurmi commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Capture the process ID that started crashpad_handler and reject IPC requests from any other processes. This restricts attachment updates and retry requests to the handler owner across Windows named pipes, Linux socket credentials, and macOS Mach audit trailers.

See also:

Capture the process that started the handler and reject runtime control IPC
from other processes using OS-provided peer identity.

Cover Windows named-pipe peer PIDs, Linux socket credentials, and macOS Mach
audit trailers. Pass the macOS owner PID as --client-pid during handler
startup.
Comment thread util/win/exception_handler_server.cc
Comment thread handler/mac/exception_handler_server.cc
@jpnurmi jpnurmi requested review from JoshuaMoelans and mujacica July 8, 2026 15:05

@JoshuaMoelans JoshuaMoelans left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM just one open question

Comment thread util/win/exception_handler_server.cc Outdated

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit c5507fa. Configure here.

Comment thread util/win/exception_handler_server.cc Outdated
Comment thread handler/mac/exception_handler_server.cc
@jpnurmi

jpnurmi commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator Author

Running sentry-native CI:

@jpnurmi jpnurmi merged commit 2ab129b into getsentry Jul 10, 2026
28 checks passed
@jpnurmi jpnurmi deleted the jpnurmi/fix/crashpad-pid branch July 10, 2026 11:49
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