chiark / gitweb /
bus: when connecting to a container's system bus, double fork after joining the conta...
authorLennart Poettering <lennart@poettering.net>
Tue, 17 Dec 2013 00:57:27 +0000 (01:57 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 17 Dec 2013 00:57:27 +0000 (01:57 +0100)
commit5d6cf65f09ab8df16bee9f2c8909cb90e710a00a
tree4fc2a05eb60a3e743df97837d240f11a0f0c86f1
parentcd49e2f6641aaa3a9185704ca2f14a1e0855c247
bus: when connecting to a container's system bus, double fork after joining the container's namespace

setns(CLONE_NEWPID) only applies to child processes, hence let's fork
once after joining the container's namespace.
src/libsystemd-bus/bus-container.c