chiark / gitweb /
bus: fix installing DRIVER matches on kdbus
authorDavid Herrmann <dh.herrmann@gmail.com>
Wed, 17 Jun 2015 17:15:58 +0000 (19:15 +0200)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 09:03:48 +0000 (10:03 +0100)
commitcd43e1983afeeebd7e5192a0d515f6b26c0ddc8e
tree97be8057f0488da619fb0430bab7eb0359614f2c
parent4fc42b863d4418a315faed84c180ebd16762bbfe
bus: fix installing DRIVER matches on kdbus

In kdbus we still have to support org.freedesktop.DBus matches even though
there is no real bus driver. The reason is that bus-control.c turns
NameOwnerChanged matches into proper kdbus matches. If we drop DRIVER
matches early, we will never match on name-changes for kdbus.

Two ways to fix this:

 1) Install DRIVER matches on kdbus (which is the simple way our and which
    is what this patch does).

 2) Properly fix the scope-detection to let NameOwnerChanged matches
    through (or better: block anything with Member!=NameOwnerChanged).
src/libelogind/sd-bus/sd-bus.c