]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemctl: don't use get_process_comm() on non-local PIDs (#7518)
authorLennart Poettering <lennart@poettering.net>
Fri, 1 Dec 2017 10:21:58 +0000 (11:21 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 1 Dec 2017 10:21:58 +0000 (11:21 +0100)
commita081b9cea09ce4aec33be31b8ad9ad4f40906ccf
treed9c5aa07f769ed31ef5435c6c500e36a1a84af11
parent6ae3fccb7d52f6b160ff2342434cdd0af016be63
systemctl: don't use get_process_comm() on non-local PIDs (#7518)

Let's not use local process data for remote processes, that can only
show nonsense.

Maybe one day we should add a bus API to query the comm field of a
process remotely, but for now, let's not bother, the information is
redundant anyway, as the cgroup data shows it too (and the cgroup tree
is show as part of status as well, and is requested from remote through
dbus, without local kernel calls).

Fixes: #7516
src/systemctl/systemctl.c