systemctl: only fall back to local cgroup display if we talk to local systemd
authorLennart Poettering <lennart@poettering.net>
Thu, 28 Oct 2021 14:47:40 +0000 (16:47 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 10 Nov 2021 14:01:30 +0000 (15:01 +0100)
commit08693ce568f0967046b669fcd99ba0939a1df86d
treeb7aa34b567e105e2ce6e8d445d3edfb51ed743b9
parent7b49704dfe47474be0d74996db45e6ba42d6b2e1
systemctl: only fall back to local cgroup display if we talk to local systemd

Otherwise we likely show rubbish because even in local containers we
nowadays have cgroup namespacing, hence we likely can't access the
cgroup tree from the host at the same place as inside the container.

(cherry picked from commit 35ac0260db7b896604d156e9638ad15700083508)
src/systemctl/systemctl-show.c