tl;dr Send your socket fd over a UNIX domain socket: syscall/passfd_test.
See All 251 Episodes of "Graham King"