tl;dr Send your socket fd over a UNIX domain socket: syscall/passfd_test.