You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is kind of similar to #568 if you are doing work in that area, but I hadn't seen SO_PASSCRED and SCM_CREDENTIALS in the wild before, and I don't think it's been reported. There's a test case in TLPI over here.
wget http://www.man7.org/tlpi/code/download/tlpi-160726-dist.tar.gz
tar xf tlpi-160726-dist.tar.gz
cd tlpi-dist
make
cd sockets
./scm_cred_recv
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.
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 EINVAL on the same recvmsg() as the original post. dbus isn't complaining about SCM_CREDENTIALS anymore though; or at least, gnome-terminal launches with an unmodified dbus-1/session.conf.
Activity
sunilmut commentedon Aug 1, 2016
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.
therealkenc commentedon Aug 1, 2016
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.
therealkenc commentedon Sep 9, 2016
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.
therealkenc commentedon Sep 10, 2016
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.
therealkenc commentedon Sep 15, 2016
Build 14926 is oddly still getting an
EINVALon the samerecvmsg()as the original post. dbus isn't complaining about SCM_CREDENTIALS anymore though; or at least,gnome-terminallaunches with an unmodifieddbus-1/session.conf.therealkenc commentedon Nov 6, 2016
The TLPI construct originally posted July 31 silently started working somewhere between 14926 and 14959. Feel free to mark as fixed if you like.