sd-dameon: also sent ucred when our UID differs from EUID
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Mon, 18 Nov 2019 11:42:23 +0000 (12:42 +0100)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Mon, 12 Feb 2024 15:37:44 +0000 (16:37 +0100)
commitff184914aa345539414e9a87fa90b70be64dc17f
treefa2c404449eca4aad38487a926eda781a413fae7
parentf48fa0d06c7301e7975889fe8174abdd837a35f2
sd-dameon: also sent ucred when our UID differs from EUID

Let's be explicit, and always send the messages from our UID and never
our EUID. Previously this behaviour was conditionalized only on whether
the PID was specified, which made this non-obvious.

(cherry picked from commit 9e1d021ee3f147486c5cfac69b3cbf6f4b36eb79)

Change-Id: I732ce2169e00f2f5fe8e7f7403d6f31dc66842a2
src/libsystemd/sd-daemon/sd-daemon.c