]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-bus: add new call sd_bus_message_sensitive() and SD_BUS_VTABLE_SENSITIVE
authorLennart Poettering <lennart@poettering.net>
Mon, 19 Aug 2019 18:28:34 +0000 (20:28 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 4 Dec 2019 12:46:23 +0000 (13:46 +0100)
commit7a77d2a41cb651adc3bbbee39dc73acacdfe1d60
treef2949f06c952f79788437310c90778ea152a24b8
parentf9f8268ac602b66a5e82bf716f8322076cbef6a4
sd-bus: add new call sd_bus_message_sensitive() and SD_BUS_VTABLE_SENSITIVE

This allows marking messages that contain "sensitive" data with a flag.
If it's set then the messages are erased from memory when the message is
freed.

Similar, a flag may be set on vtable entries: incoming/outgoing message
matching the entry will then automatically be flagged this way.

This is supposed to be an easy method to mark messages containing
potentially sensitive data (such as passwords) for proper destruction.

(Note that this of course is only is as safe as the broker in between is
doing something similar. But let's at least not be the ones at fault
here.)
src/libsystemd/libsystemd.sym
src/libsystemd/sd-bus/bus-message.c
src/libsystemd/sd-bus/bus-message.h
src/libsystemd/sd-bus/bus-objects.c
src/systemd/sd-bus-vtable.h
src/systemd/sd-bus.h