]> git.ipfire.org Git - thirdparty/systemd.git/commit
nspawn: move $NOTIFY_SOCKET into /run/host/ too
authorLennart Poettering <lennart@poettering.net>
Wed, 22 Jul 2020 16:00:18 +0000 (18:00 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 20 Aug 2020 08:17:48 +0000 (10:17 +0200)
commite96ceabac958bf30dcbbf51c6cdf44477ca96c16
treea21703ac86ac8b2e8a02e6d64a0f752df9f9473e
parent5a27b395187e64c17d90e880a678aa1c354c74c0
nspawn: move $NOTIFY_SOCKET into /run/host/ too

The sd_notify() socket that nspawn binds that the payload can use to
talk to it was previously stored in /run/systemd/nspawn/notify, which is
weird (as in the previous commit) since this makes /run/systemd
something that is cooperatively maintained by systemd inside the
container and nspawn outside of it.

We now have a better place where container managers can put the stuff
they want to pass to the payload: /run/host/, hence let's make use of
that.

This is not a compat breakage, since the sd_notify() protocol is based
on the $NOTIFY_SOCKET env var, where we place the new socket path.
src/nspawn/nspawn.c
test/units/testsuite-13.sh