Skip to content

Allow clients to send signals with explicit destination - #78

Open
Molytho wants to merge 1 commit into
flatpak:mainfrom
Molytho:main
Open

Allow clients to send signals with explicit destination#78
Molytho wants to merge 1 commit into
flatpak:mainfrom
Molytho:main

Conversation

@Molytho

@Molytho Molytho commented May 5, 2026

Copy link
Copy Markdown

Currently clients are permitted to emit broadcast signals but are not allowed to emit signals with explicit destinations.

This is an issue because of the following sequence:

  1. An client calls a method on a sandboxed client => The sandboxed client starts some asynchronous operation and returns success
  2. The sandboxed client wants to inform the client that something happend to the operation (e.g. it finished). The client does this by emitting a signal destined to the calling client. => The signal might be blocked if we don't have permission to send to the destination

This behavior does not benefit security since a malicious client could just emit broadcast signals but breaks valid usecases thus this commit allows signals to be send to client that can be see.

Closes: #25

Currently clients are permitted to emit broadcast signals but
are not allowed to emit signals with explicit destinations.

This is an issue because of the following sequence:
1. An client calls a method on a sandboxed client
=> The sandboxed client starts some asynchronous operation and returns success
2. The sandboxed client wants to inform the client that something happend to the operation (e.g. it finished). The client does this by emitting a signal destined to the calling client.
=> The signal might be blocked if we don't have permission to send to the destination

This behavior does not benefit security since a malicious client could just emit broadcast signals but breaks valid usecases thus this commit allows signals to be send to client that can be see.

Closes: flatpak#25
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.

Signal doesn't go through xdg-dbus-proxy if unique connection name is specified as destination

1 participant