This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xdegaye
Recipients xdegaye
Date 2019-03-18.09:28:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1552901311.8.0.284051575659.issue36341@roundup.psfhosted.org>
In-reply-to
Content
This happens on Android where a SELinux policy prevents a plain user to bind() a pathname AF_UNIX socket (abstract and unnamed sockets are not constrained by this policy).

The errors are:

test_asyncio:
======================================================================
ERROR: test_start_unix_server_1 (test.test_asyncio.test_server.SelectorStartServerTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/data/local/tmp/python/lib/python3.8/test/test_asyncio/test_server.py", line 105, in test_start_unix_server_1
  srv = self.loop.run_until_complete(asyncio.start_unix_server(
File "/data/local/tmp/python/lib/python3.8/asyncio/base_events.py", line 589, in run_until_complete
  return future.result()
File "/data/local/tmp/python/lib/python3.8/asyncio/streams.py", line 115, in start_unix_server
  return await loop.create_unix_server(factory, path, **kwds)
File "/data/local/tmp/python/lib/python3.8/asyncio/unix_events.py", line 285, in create_unix_server
  sock.bind(path)
PermissionError: [Errno 13] Permission denied

test_socket:
======================================================================
ERROR: test_socket_fileno (test.test_socket.GeneralModuleTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/data/local/tmp/python/lib/python3.8/test/test_socket.py", line 1780, in test_socket_fileno
  s.bind(os.path.join(tmpdir, 'socket'))
PermissionError: [Errno 13] Permission denied

test_stat:
======================================================================
ERROR: test_socket (test.test_stat.TestFilemodeCStat)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/data/local/tmp/python/lib/python3.8/test/test_stat.py", line 198, in test_socket
  s.bind(TESTFN)
PermissionError: [Errno 13] Permission denied

======================================================================
ERROR: test_socket (test.test_stat.TestFilemodePyStat)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/data/local/tmp/python/lib/python3.8/test/test_stat.py", line 198, in test_socket
  s.bind(TESTFN)
PermissionError: [Errno 13] Permission denied
History
Date User Action Args
2019-03-18 09:28:31xdegayesetrecipients: + xdegaye
2019-03-18 09:28:31xdegayesetmessageid: <1552901311.8.0.284051575659.issue36341@roundup.psfhosted.org>
2019-03-18 09:28:31xdegayelinkissue36341 messages
2019-03-18 09:28:31xdegayecreate