Navigation Menu

Skip to content
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

Closed
tiran opened this issue May 2, 2016 · 6 comments
Closed

Add missing getsockopt constants #71094

tiran opened this issue May 2, 2016 · 6 comments
Labels
type-feature A feature request or enhancement

Comments

@tiran
Copy link
Member

tiran commented May 2, 2016

BPO 26907
Nosy @nascheme, @tiran, @vadmium
Files
  • Add-SO_-socket-constants.patch
  • 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:

    assignee = None
    closed_at = <Date 2016-08-24.01:13:23.008>
    created_at = <Date 2016-05-02.14:29:23.888>
    labels = ['type-feature']
    title = 'Add missing getsockopt constants'
    updated_at = <Date 2016-08-24.01:13:23.007>
    user = 'https://github.com/tiran'

    bugs.python.org fields:

    activity = <Date 2016-08-24.01:13:23.007>
    actor = 'r.david.murray'
    assignee = 'none'
    closed = True
    closed_date = <Date 2016-08-24.01:13:23.008>
    closer = 'r.david.murray'
    components = []
    creation = <Date 2016-05-02.14:29:23.888>
    creator = 'christian.heimes'
    dependencies = []
    files = ['44172']
    hgrepos = []
    issue_num = 26907
    keywords = ['patch']
    message_count = 6.0
    messages = ['264649', '269200', '269217', '273241', '273251', '273529']
    nosy_count = 4.0
    nosy_names = ['nascheme', 'christian.heimes', 'python-dev', 'martin.panter']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue26907'
    versions = ['Python 3.6']

    @tiran
    Copy link
    Member Author

    tiran commented May 2, 2016

    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

    @tiran tiran self-assigned this May 2, 2016
    @tiran tiran added the type-feature A feature request or enhancement label May 2, 2016
    @tiran tiran removed their assignment Jun 12, 2016
    @nascheme
    Copy link
    Member

    Issue bpo-27377 adds these constants.

    @vadmium
    Copy link
    Member

    vadmium commented Jun 25, 2016

    SO_PASSCRED was added to Python 3.3 as part of bpo-6560; it is just missing documentation.

    @tiran
    Copy link
    Member Author

    tiran commented Aug 20, 2016

    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.

    @vadmium
    Copy link
    Member

    vadmium commented Aug 20, 2016

    Patch looks fine to me.

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Aug 24, 2016

    New changeset ed5f5d490490 by R David Murray in branch 'default':
    bpo-26907: add some missing getsockopt constants.
    https://hg.python.org/cpython/rev/ed5f5d490490

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    4 participants