-
Notifications
You must be signed in to change notification settings - Fork 832
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EINVAL on PF_LOCAL recvmsg SCM_CREDENTIALS #706
Comments
Thanks for reporting the issue and the trace. The actual call that is failing is the sendmsg with ancillary message containing SCM_CREDENTIALS and the corresponding recvmsg is also failing. SCM_CREDENTIALS is currently not supported by WSL. I have opened a bug to track this. But, out of curiosity, did you run into this while trying out a scenario and the tlpi test is just a specific repro of it? Just wanted to make sure we cover the scenario as well when the bug is fixed. |
Thanks. Newer versions of d-bus use the pattern I think. You'll probably hit this if/when WSL moves to Xenial as the base. Mostly I put it out there because if the pattern is in TLPI then it has probably been mimicked IRL. |
Here's the dbus usage for what it's worth. In general, run the dbus test suite I posted here and you'll hit any unimplemented surface.
|
Did a quick search on this out of curiosity after dinner. Pretty much anything that cares who it is talking to on the other side of the AF_UNIX socket hits this. For example syslog-ng over here. GIO which I mentioned in #754 over here. Postgresql #62 will hit this eventually here. This has all been obscured by us using AF_INET since the spring because local credentials don't make sense in a remote context, and anything remote does some kind of encryped password, key, or cookie exchange. |
Build 14926 is oddly still getting an
|
The TLPI construct originally posted July 31 silently started working somewhere between 14926 and 14959. Feel free to mark as fixed if you like. |
This is kind of similar to #568 if you are doing work in that area, but I hadn't seen
SO_PASSCRED
andSCM_CREDENTIALS
in the wild before, and I don't think it's been reported. There's a test case in TLPI over here.In another terminal:
The offending part of
strace
is:The text was updated successfully, but these errors were encountered: