Every live seat custodian on this host, with the run that started it (#1648).
This reads /proc/<pid>/cmdline only, which is world-readable, so a census costs one readdir plus
one small read per pid and never needs the uid of the process it is looking at. That is the whole
reason the marker is on argv: the orphans carried their worktree only as their CWD, and
/proc/<pid>/cwd is a readlink the owner alone may follow, so a census of somebody else's
leftovers could not even see them.
run filters to one run's custodians. Omitted, it reports every one on the host, which is what a
reaper sweeping before a run wants. A custodian started before this change carries no marker and
is not reported: it cannot be attributed, and claiming it as the caller's would be a guess.
Every live seat custodian on this host, with the run that started it (#1648).
This reads
/proc/<pid>/cmdlineonly, which is world-readable, so a census costs one readdir plus one small read per pid and never needs the uid of the process it is looking at. That is the whole reason the marker is on argv: the orphans carried their worktree only as their CWD, and/proc/<pid>/cwdis a readlink the owner alone may follow, so a census of somebody else's leftovers could not even see them.runfilters to one run's custodians. Omitted, it reports every one on the host, which is what a reaper sweeping before a run wants. A custodian started before this change carries no marker and is not reported: it cannot be attributed, and claiming it as the caller's would be a guess.