Open patricoferris opened 2 years ago
https://github.com/Microsoft/WSL/issues/514 says:
We currently only have a support for passing just one file descriptor at a time via unix sockets. [...] Just FYI that this should be fixed in 15042.
Maybe that's the problem?
AFAICT, this functionality was broken on Linux proper too, at least for a while. Here's what I can make of this:
IORING_OP_SENDMSG
implementation shipped in Linux 5.3 was found to have a security vulnerability related to SCM_CREDENTIALS
ancillary data: https://bugs.chromium.org/p/project-zero/issues/detail?id=1975@patricoferris when you opened this issue, the latest kernel for WSL2 was 5.10.93.2 in which fd passing was still banned. By now, you can get 5.15 kernels for WSL2. Can you try it with that?
At the moment using the latest WSL kernel, the fd passing
sendmsg
examples are failing withEINVAL
. Not sure if this is an issue in the C stubs or something quirky with WSL.