diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-12-10 13:23:49 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-12-10 13:36:10 +0100 |
commit | 536bfdab4cca38916ec8b112a6f80b0c068cc806 (patch) | |
tree | 534d518c36da1199088167851bceca0678f6d169 /test/path-makedirectory.path | |
parent | a644abed54bd4a42ebe2c99af5cc621ffbaf6c55 (diff) |
virt: when detecting containers and /run/systemd/container cannot be read, check /proc/1/environ
This way, we should be in a slightly better situation if a container is
booted up with only a shell as PID 1. In that case
/run/systemd/container will not be populated, and a check for it hence
be ineffective.
Checking /proc/1/environ doesn't fully fix the problem though, as the
file is only accessible with privileges. This means if PID 1 is not
systemd, and if privileges have been dropped the container detection
will continue to fail.
Diffstat (limited to 'test/path-makedirectory.path')
0 files changed, 0 insertions, 0 deletions