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

bind() on a unix socket raises PermissionError on Android for a non-root user #72869

Closed
xdegaye mannequin opened this issue Nov 13, 2016 · 3 comments
Closed

bind() on a unix socket raises PermissionError on Android for a non-root user #72869

xdegaye mannequin opened this issue Nov 13, 2016 · 3 comments
Assignees
Labels
3.7 (EOL) end of life tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@xdegaye
Copy link
Mannequin

xdegaye mannequin commented Nov 13, 2016

BPO 28683
Nosy @xdegaye
PRs
  • [Do Not Merge] Convert Misc/NEWS so that it is managed by towncrier #552
  • Files
  • bind_unix_socket.patch
  • bind_unix_socket_2.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 = 'https://github.com/xdegaye'
    closed_at = <Date 2016-12-14.19:24:08.457>
    created_at = <Date 2016-11-13.19:32:03.991>
    labels = ['3.7', 'type-bug', 'tests']
    title = 'bind() on a unix socket raises PermissionError on Android for a non-root user'
    updated_at = <Date 2017-03-31.16:36:31.543>
    user = 'https://github.com/xdegaye'

    bugs.python.org fields:

    activity = <Date 2017-03-31.16:36:31.543>
    actor = 'dstufft'
    assignee = 'xdegaye'
    closed = True
    closed_date = <Date 2016-12-14.19:24:08.457>
    closer = 'xdegaye'
    components = ['Tests']
    creation = <Date 2016-11-13.19:32:03.991>
    creator = 'xdegaye'
    dependencies = []
    files = ['45475', '45878']
    hgrepos = []
    issue_num = 28683
    keywords = ['patch']
    message_count = 3.0
    messages = ['280709', '283136', '283186']
    nosy_count = 2.0
    nosy_names = ['xdegaye', 'python-dev']
    pr_nums = ['552']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue28683'
    versions = ['Python 3.6', 'Python 3.7']

    @xdegaye
    Copy link
    Mannequin Author

    xdegaye mannequin commented Nov 13, 2016

    Tests in test_socket and test_asyncore fail on Android when bind() on a unix socket raises PermissionError for a non-root user. This occurs also in test_asyncio and this is logged in a separate issue as asyncio has its own project.

    Patch attached.

    @xdegaye xdegaye mannequin added the 3.7 (EOL) end of life label Nov 13, 2016
    @xdegaye xdegaye mannequin self-assigned this Nov 13, 2016
    @xdegaye xdegaye mannequin added tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error labels Nov 13, 2016
    @xdegaye
    Copy link
    Mannequin Author

    xdegaye mannequin commented Dec 13, 2016

    test_pathlib must also be fixed for this same problem.
    New patch.

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Dec 14, 2016

    New changeset b65ae19bc42a by Xavier de Gaye in branch '3.6':
    Issue bpo-28683: Fix the tests that bind() a unix socket and raise PermissionError
    https://hg.python.org/cpython/rev/b65ae19bc42a

    New changeset 0350e0634a4b by Xavier de Gaye in branch 'default':
    Issue bpo-28683: Merge 3.6.
    https://hg.python.org/cpython/rev/0350e0634a4b

    @xdegaye xdegaye mannequin closed this as completed Dec 14, 2016
    @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
    3.7 (EOL) end of life tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    0 participants