-
Notifications
You must be signed in to change notification settings - Fork 227
Add wrappers for SO_PEERCRED and SCM_CREDENTIALS
#851
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
Conversation
|
On the merge conflict here, #855 moved all the sockopt functions out of syscalls.rs and into their own sockopt.rs file, so hopefully you can just move the code here over to the new file. |
ac06965 to
4a0338e
Compare
|
I was thinking this would be awkward to test, but actually it's not to hard to just create a I also updated |
sunfishcode
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this!
|
Looks good! |
|
This is now released in rustix 0.38.17. |
I still need to test this to make sure it works properly. Particularly the
SCM_CREDENTIALSpart.Apparently FreeBSD, macOS, and DragonFlyBSD have
LOCAL_PEERCREDwhich similar toSO_PEERCREDbut with an array of groups. And likewise FreeBSD listsSCM_CREDSwith a similar difference... There's alsogetpeereidon all BSDs but not Linux that gets uid and gid but not pid.