]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-bus: Don't fork unnecessarily to connect to container 40698/head
authorDaan De Meyer <daan@amutable.com>
Mon, 16 Feb 2026 12:14:58 +0000 (13:14 +0100)
committerDaan De Meyer <daan@amutable.com>
Tue, 17 Feb 2026 16:52:20 +0000 (17:52 +0100)
commit6119252f5a66fa881fe01b8300d468023f294261
tree7d0ed475ec953af3394bd79ebbfa8b914f79db08
parenta12c5bf4f5a01eb7cc62cf987e5f4451c07b4fd0
sd-bus: Don't fork unnecessarily to connect to container

Let's check if we're already in the right namespaces and call connect()
directly if that's the case. This can easily happen when the machine is
specified as .host or so.
src/basic/namespace-util.c
src/basic/namespace-util.h
src/libsystemd/sd-bus/bus-container.c