chiark / gitweb /
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)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:50:08 +0000 (07:50 +0200)
commit89c7df51e966c0b0c080c5ecab238dbe289c7768
tree8d37ae83ac7594a78fa8b9b523830188bd532a81
parent941f374947c8db8311bbde1bba478749d455be43
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/libelogind/sd-daemon/sd-daemon.c