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
Add missing getsockopt constants #71094
Comments
The socket doesn't expose some constants for getsockopt() and setsockopt(): Get domain and protocol from socket fd enable/disable passing of credentials get security context (SELinux context) enable/disable passing of security context |
Issue bpo-27377 adds these constants. |
SO_PASSCRED was added to Python 3.3 as part of bpo-6560; it is just missing documentation. |
The attached patch adds SO_DOMAIN, SO_PROTOCOL, SO_PEERSEC and SO_PASSSEC. I'd like to get the constants into the stdlib in case Neil's patch won't make it into 3.6. |
Patch looks fine to me. |
New changeset ed5f5d490490 by R David Murray in branch 'default': |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: