sd_pid_get_owner_uid(3) on Linux
The text b3ebd5e2b70e, as Debian 7 (Wheezy) shipped it.
Determine session, service or owner of a session of a specific PID
The text b3ebd5e2b70e, as Debian 7 (Wheezy) shipped it.
Determine session, service or owner of a session of a specific PID