Issue 26907: Add missing getsockopt constants (original ) (raw ) This issue has been migrated to GitHub: https://github.com/python/cpython/issues/71094
classification
process
Created on 2016-05-02 14:29 by christian.heimes , last changed 2022-04-11 14:58 by admin . This issue is now closed .
Messages (6)
msg264649 - (view)
Author: Christian Heimes (christian.heimes) *
Date: 2016-05-02 14:29
The socket doesn't expose some constants for getsockopt() and setsockopt(): Get domain and protocol from socket fd SO_DOMAIN SO_PROTOCOL enable/disable passing of credentials SO_PASSCRED get security context (SELinux context) SO_PEERSEC enable/disable passing of security context SO_PASSSEC
msg269200 - (view)
Author: Neil Schemenauer (nascheme) *
Date: 2016-06-24 17:23
Issue #27377 adds these constants.
msg269217 - (view)
Author: Martin Panter (martin.panter) *
Date: 2016-06-25 02:14
SO_PASSCRED was added to Python 3.3 as part of Issue 6560 ; it is just missing documentation.
msg273241 - (view)
Author: Christian Heimes (christian.heimes) *
Date: 2016-08-20 19:06
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.
msg273251 - (view)
Author: Martin Panter (martin.panter) *
Date: 2016-08-20 22:54
Patch looks fine to me.
msg273529 - (view)
Author: Roundup Robot (python-dev)
Date: 2016-08-24 01:12
New changeset ed5f5d490490 by R David Murray in branch 'default': #26907 : add some missing getsockopt constants. https://hg.python.org/cpython/rev/ed5f5d490490
History
Date
User
Action
Args
2022-04-11 14:58:30
admin
set
github: 71094
2016-08-24 01:13:23
r.david.murray
set
status: open -> closedresolution: fixedstage: commit review -> resolved
2016-08-24 01:12:54
python-dev
set
nosy: + python-dev messages: +
2016-08-20 22:54:26
martin.panter
set
messages: + stage: commit review
2016-08-20 19:06:28
christian.heimes
set
files: + Add-SO_-socket-constants.patch keywords: + patch messages: +
2016-06-25 02:14:02
martin.panter
set
nosy: + martin.panter messages: +
2016-06-24 17:23:20
nascheme
set
nosy: + nascheme messages: +
2016-06-12 11:22:07
christian.heimes
set
assignee: christian.heimes ->
2016-05-02 14:29:23
christian.heimes
create