sd-bus: introduce API for re-enqueuing incoming messages
authorLennart Poettering <lennart@poettering.net>
Wed, 22 Jan 2020 16:05:17 +0000 (17:05 +0100)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Thu, 25 Jan 2024 14:31:29 +0000 (15:31 +0100)
commitdbb8a963105faa150e54bcc10ee2bc6b7fecb3fd
treeb672c6b216479d7549f872b09dc2251911d0cc60
parent8925e4707f39221ffac6b59b9f4dd00058df2c01
sd-bus: introduce API for re-enqueuing incoming messages

When authorizing via PolicyKit we want to process incoming method calls
twice: once to process and figure out that we need PK authentication,
and a second time after we aquired PK authentication to actually execute
the operation. With this new call sd_bus_enqueue_for_read() we have a
way to put an incoming message back into the read queue for this
purpose.

This might have other uses too, for example debugging.

(Resolve build error from cherry-pick) In libsystemd.sym, removed
unnecessary symbols:
  LIBSYSTEMD_245 {
  global:
          sd_bus_enqueue_for_read;
 -        sd_bus_message_dump;
 -        sd_bus_message_sensitive;
 -        sd_event_add_child_pidfd;
 -        sd_event_source_get_child_pidfd;
 -        sd_event_source_get_child_pidfd_own;
 -        sd_event_source_set_child_pidfd_own;
 -        sd_event_source_get_child_process_own;
 -        sd_event_source_set_child_process_own;
 -        sd_event_source_send_child_signal;
 -        sd_journal_open_namespace;
  } LIBSYSTEMD_243;

Origin: upstream, https://github.com/systemd/systemd/commit/1068447e6954dc6ce52f099ed174c442cb89ed54
Change-Id: Iad04610bf0b50be04bc870c7fc42b1d9c991cfa2
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
src/libsystemd/libsystemd.sym
src/libsystemd/sd-bus/sd-bus.c
src/systemd/sd-bus.h