]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-bus: introduce API for re-enqueuing incoming messages
authorJan Synacek <jsynacek@redhat.com>
Fri, 31 Jan 2020 10:34:45 +0000 (11:34 +0100)
committerLukas Nykryn <lnykryn@redhat.com>
Thu, 6 Feb 2020 09:41:56 +0000 (10:41 +0100)
commit8efdae75ddf035c8c04983820f8d8cf767cc17b1
tree6a2e5d84e0d3b33b359a003f9630d8b022632992
parentbc2d7df4fc21e9e54413169d5aad21616314d65e
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.
Related: CVE-2020-1712
src/libsystemd/libsystemd.sym
src/libsystemd/sd-bus/sd-bus.c
src/systemd/sd-bus.h