Skip to content

Commit

Permalink
Don't require TALK permission for broadcast rules
Browse files Browse the repository at this point in the history
The context is to allow for AT-SPI broadcast signals (specifically
`EventListenerRegistered` and `EventListenerDeregistered` from the
`org.a11y.atspi.Registry` interface on the registry object) to be
allowed through, without giving apps a full talk permission to it.
  • Loading branch information
GeorgesStavracas committed Jul 9, 2024
1 parent 1bcfaea commit 0297845
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions flatpak-proxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -2744,11 +2744,11 @@ got_buffer_from_bus (FlatpakProxyClient *client, ProxySide *side, Buffer *buffer
policy = flatpak_proxy_client_get_max_policy_and_matched (client, header->sender, &filters);

if (policy == FLATPAK_POLICY_OWN ||
(policy == FLATPAK_POLICY_TALK &&
any_filter_matches (filters, FILTER_TYPE_BROADCAST,
header->path,
header->interface,
header->member)))
policy == FLATPAK_POLICY_TALK ||
any_filter_matches (filters, FILTER_TYPE_BROADCAST,
header->path,
header->interface,
header->member))
filtered = FALSE;

if (filtered)
Expand Down

0 comments on commit 0297845

Please sign in to comment.