Re: [RFE] Support signaling only connections owned by specific uid

David Rheinsberg <[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Message-ID <CADyDSO6W2Lqwf7umK+RYCjUwo8jGXO_X-V9GPNkBWoBz0aqMig@mail.gmail.com>
Hi

On Thu, 8 Apr 2021 at 11:12, Bogdan Lotko <[email protected]> wrote:
> I don't know the details, but is it not much more simple to make a
> broadcast and process the message only in applications that belong to
> specified user?

To extend on that, a simple solution is to only broadcast public
information and require callers to request more data via a
method-call. This method-call can then be guarded by uid verification,
etc. The D-Bus `PropertiesChanged` signal allows for a simple solution
by utilizing the `invalidated-properties` feature, rather than
including payload directly in the signal.

On a different note, you can always send directed-signals as unicasts
to all interested/authorized parties. These will not be proper
multicasts, though, thus subject to re-ordering.

David
_______________________________________________
dbus mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dbus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.