summaryrefslogtreecommitdiffstats
path: root/man/sd_bus_get_name_machine_id.xml
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2023-04-25 01:56:06 +0200
committerLuca Boccassi <bluca@debian.org>2023-04-25 13:24:25 +0200
commitbf876e3f3e7c38635547cd87de7621eb8e3e946c (patch)
tree10ccfddfb8614656d59dce0c7a576360653fc4d2 /man/sd_bus_get_name_machine_id.xml
parentmacro: add helper for module origin id (diff)
downloadsystemd-bf876e3f3e7c38635547cd87de7621eb8e3e946c.tar.xz
systemd-bf876e3f3e7c38635547cd87de7621eb8e3e946c.zip
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_get_name_machine_id.xml')
-rw-r--r--man/sd_bus_get_name_machine_id.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/man/sd_bus_get_name_machine_id.xml b/man/sd_bus_get_name_machine_id.xml
index 8249485f25..cd702e4063 100644
--- a/man/sd_bus_get_name_machine_id.xml
+++ b/man/sd_bus_get_name_machine_id.xml
@@ -72,7 +72,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>