carta

sd_peer_get_session(3) on Linux

The text d22b3923f292, as Debian 12 (Bookworm) shipped it.

Determine the owner uid of the user unit or session, or the session, user unit, system unit, container/VM or slice that a specific PID or socket peer belongs to

sd_peer_get_session(3) on Linux now