/proc on Linux (no subprocess, no PATH dependency, NUL-separated argv); ps -p <pid> -o command= elsewhere on POSIX. Windows has neither and is unreadable, because of the asymmetry
the callers enforce: attribution may only ever DOWNGRADE a record on affirmative evidence that
the live process is something else, so a platform that cannot read argv leaves a live pid
trusted.
Read one pid's command line.
/procon Linux (no subprocess, no PATH dependency, NUL-separated argv);ps -p <pid> -o command=elsewhere on POSIX. Windows has neither and isunreadable, because of the asymmetry the callers enforce: attribution may only ever DOWNGRADE a record on affirmative evidence that the live process is something else, so a platform that cannot read argv leaves a live pid trusted.