sd-dameon: also sent ucred when our UID differs from EUID
authorLennart Poettering <lennart@poettering.net>
Fri, 5 Jan 2018 12:24:58 +0000 (13:24 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 11 Jan 2018 14:12:16 +0000 (15:12 +0100)
commit9e1d021ee3f147486c5cfac69b3cbf6f4b36eb79
tree3adfe09f8ee750e3536e96fc19b30034cfcf6af3
parent15e23e8cdf19ecb2a253d12fd53c88856a529f7d
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.
src/libsystemd/sd-daemon/sd-daemon.c