]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/basic/def.h
sd-bus: drop references to legacy /var/run D-Bus socket
authorLennart Poettering <lennart@poettering.net>
Tue, 19 Dec 2017 14:41:58 +0000 (15:41 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 5 Jan 2018 12:58:32 +0000 (13:58 +0100)
commit15ca0a42c7db49146a7169dbcb0683f0836cf8c2
treea762ab3c5b159efdbfd98be866413908fb5191e4
parent8c095a070b4c44147bef319c55e70a9f38277cfb
sd-bus: drop references to legacy /var/run D-Bus socket

Let's directly reference /run instead, so that we can work without /var
being around, or with /var/run being incorrectly set up.

Note that we keep the old socket path in place when referencing the
system bus of containers, as they might be foreign operating systems,
that still don't have adopted /run, and where it makes sense to use the
standardized name instead. On local systems, we insist on /run being set
up properly however, hence this limitation does not apply.

Also, get rid of the UNIX_SYSTEM_BUS_ADDRESS and
UNIX_USER_BUS_ADDRESS_FMT defines. They had a purpose when we still did
kdbus, as we then had to support two different backends. But since
that's gone, we don't need this indirection anymore, hence settle on a
one define only.
src/basic/def.h
src/libsystemd/sd-bus/sd-bus.c
src/login/pam_systemd.c