pidofproc: use "pidof -c" to avoid pidofproc results from containers or chroots
authorHarald Dunkel <harald.dunkel@aixigo.de>
Sun, 24 Mar 2019 13:24:13 +0000 (14:24 +0100)
committerDidier Raboud <odyx@debian.org>
Sun, 24 Mar 2019 13:24:30 +0000 (14:24 +0100)
commit88e04b794024c4350e9925ec5a2f879244fe70c0
tree761868d5741a1baf7fb6b2f56d93ffb95934e2bf
parent674781a3b4e40b47f63ad2f370cbb140c2e04c25
pidofproc: use "pidof -c" to avoid pidofproc results from containers or chroots

From pidof's manpage:
  -c     Only return process PIDs that are running with the same root
         directory.  This option is ignored for non-root users, as they will
         be unable to check the current root directory of processes they do
         not own.

Closes: #888743
init-functions