chiark / gitweb /
core: add new AcceptFD= setting to .busname units
authorLennart Poettering <lennart@poettering.net>
Tue, 18 Mar 2014 19:54:32 +0000 (20:54 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 18 Mar 2014 19:54:32 +0000 (20:54 +0100)
commit3f9da416457c4265b8f1179516a32ad1a987ff7d
treea9a66492e8ae1b0964046190e7253a06aaa65138
parent63405595065fb60811440680b148261e9ec50704
core: add new AcceptFD= setting to .busname units

AcceptFD= defaults to true, thus making sure that by default fd passing
is enabled for all activatable names. Since for normal bus connections
fd passing is enabled too by default this makes sure fd passing works
correctly regardless whether a service is already activated or not.

Making this configurable on both busname units and in bus connections is
messy, but unavoidable since busnames are established and may queue
messages before the connection feature negotiation is done by the
service eventually activated. Conversely, feature negotiation on bus
connections takes place before the connection acquires its names.

Of course, this means developers really should make sure to keep the
settings in .busname units in sync with what they later intend to
negotiate.
src/core/busname.c
src/core/busname.h
src/core/load-fragment-gperf.gperf.m4
src/libsystemd/sd-bus/bus-kernel.c
src/libsystemd/sd-bus/bus-kernel.h