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>
Wed, 10 Jan 2024 22:18:36 +0000 (23:18 +0100)
commit8b247279b241d7d016a99f49bf35473372ff0f2e
tree314310d4eb720a25948f3caae28281bbfc8490b9
parentd07e29dfaf955da62b7755184114146dfe30a26a
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