pub fn uid_at(proc_root: impl AsRef<Path>, pid: i32) -> Result<u32, CoreError>Expand description
Return the owning UID for /proc/<pid> under an explicit procfs root.
This is a cheap ownership probe for tests, alternate proc mounts, or
callers that need to inspect a procfs tree other than the host /proc.