nspawn: provide $container and $container_uuid in /run/host too
authorLennart Poettering <lennart@poettering.net>
Fri, 14 Aug 2020 17:58:37 +0000 (19:58 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 20 Aug 2020 08:17:55 +0000 (10:17 +0200)
commit0f48ba7b8489770629f1b951a859e719666616ce
tree56c7ad9a8ed4bcec3ac138520074c83394f308d5
parent9fac502920a648d82e21b207989bfc3c00fbdebc
nspawn: provide $container and $container_uuid in /run/host too

This has the major benefit that the entire payload of the container can
access these files there. Previously, we'd set them only as env vars,
but that meant only PID 1 could read them directly or other privileged
payload code with access to /run/1/environ.
src/basic/virt.c
src/nspawn/nspawn.c