chiark / gitweb /
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)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:49:59 +0000 (07:49 +0200)
commit20b20d0c3c2109840a83f435818d033dbe027a14
treecea99d3ddddd492f5085a903310be1ff69ea2fb9
parent22130b6b3c6d060b405bbc17d9a6a670001358ab
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/libelogind/sd-bus/sd-bus.c
src/login/pam_elogind.c