diff options
author | Luca Boccassi <bluca@debian.org> | 2023-04-25 01:08:46 +0100 |
---|---|---|
committer | Luca Boccassi <bluca@debian.org> | 2023-04-25 12:24:25 +0100 |
commit | e046719b749ebba5d44d92c7e0a9fb207d545ff7 (patch) | |
tree | 0d39531a5d3302aaa6fd358fdbb6eaed116d06ab /man | |
parent | bf876e3f3e7c38635547cd87de7621eb8e3e946c (diff) | |
download | systemd-e046719b749ebba5d44d92c7e0a9fb207d545ff7.tar.gz |
sd-journal: store and compare per-module static origin id
sd-journal objects use hashmaps, which use module-global state, so it is not safe
to pass a sd-journal object created by a module instance to another module instance
(e.g.: when two libraries static linking sd-journal 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')
-rw-r--r-- | man/sd_journal_get_data.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/man/sd_journal_get_data.xml b/man/sd_journal_get_data.xml index 2955cd264b..9a90f95d1a 100644 --- a/man/sd_journal_get_data.xml +++ b/man/sd_journal_get_data.xml @@ -168,7 +168,7 @@ <varlistentry id='ECHILD'> <term><constant>-ECHILD</constant></term> - <listitem><para>The journal object was created in a different process.</para></listitem> + <listitem><para>The journal object was created in a different process, library or module instance.</para></listitem> </varlistentry> <varlistentry id='EADDRNOTAVAIL'> |