On Mon, May 30, 2016 at 3:41 AM, Christian Lockley <clockl...@gmail.com> wrote:
> Hi all, > I developing an app that returns an id after and init function, this id > is to be passed the subsequent calls so the program can prevent clients > from modifying the internal state of other clients. Right now I store the > value returned by sd_bus_message_get_sender() in the init function then > call sd_bus_message_get_sender() again in all the other functions, > verifying the value matches what I expect. Is this the correct or best way > to do this? > IIRC, get_sender() returns the connection's unique D-Bus name, so yeah, it would be safe to use. -- Mantas Mikulėnas <graw...@gmail.com>
_______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel