diff options
author | Luca Boccassi <bluca@debian.org> | 2023-04-25 00:56:06 +0100 |
---|---|---|
committer | Luca Boccassi <bluca@debian.org> | 2023-04-25 12:24:25 +0100 |
commit | bf876e3f3e7c38635547cd87de7621eb8e3e946c (patch) | |
tree | 10ccfddfb8614656d59dce0c7a576360653fc4d2 /man/sd_bus_set_description.xml | |
parent | bf2d930fa12de997920eef493d9fcce1580c4f44 (diff) | |
download | systemd-bf876e3f3e7c38635547cd87de7621eb8e3e946c.tar.gz |
sd-bus: store and compare per-module static origin id
sd-bus objects use hashmaps, which use module-global state, so it is not safe
to pass a sd-bus object created by a module instance to another module instance
(e.g.: when two libraries static linking sd-bus are pulled in a single process).
Initialize a random per-module origin id and store it in the object, and compare
it when entering a public API, and error out if they don't match, together with
the PID.
Diffstat (limited to 'man/sd_bus_set_description.xml')
-rw-r--r-- | man/sd_bus_set_description.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/man/sd_bus_set_description.xml b/man/sd_bus_set_description.xml index 0c38c16128..783a0b7922 100644 --- a/man/sd_bus_set_description.xml +++ b/man/sd_bus_set_description.xml @@ -202,7 +202,7 @@ <varlistentry> <term><constant>-ECHILD</constant></term> - <listitem><para>The bus was created in a different process.</para></listitem> + <listitem><para>The bus was created in a different process, library or module instance.</para></listitem> </varlistentry> <varlistentry> |