gvisor icon indicating copy to clipboard operation
gvisor copied to clipboard

[Feature Request] host-uds=all with support for SCM_RIGHTS FD sharing.

Open handpickencounter opened this issue 9 months ago • 2 comments

When using -host-uds=all allow for -host-uds=all,fdshare or similar enabling sharing of FDs across a UDS which crosses the gvisor boundary back and forth through the use of SCM_RIGHTS.

Will allow for protocols which utilize SCM_RIGHTS to share mmap'ed FDs to work between gvisor instances and gvisor<>host.

handpickencounter avatar May 06 '25 06:05 handpickencounter

It's not possible to send arbitrary FDs from sandbox to host via SCM_RIGHTS since many in-sandbox files are implemented internal to gVisor and won't have host FDs. Do you have a specific use case?

nixprime avatar May 08 '25 16:05 nixprime

The Wayland protocol shares memory blobs with SCM_RIGHTS across a UDS socket.

handpickencounter avatar Sep 06 '25 06:09 handpickencounter