[New-bugs-announce] [issue20257] test_socket fails if using tipc module and SELinux enabled

Vajrasky Kok report at bugs.python.org
Tue Jan 14 10:39:22 CET 2014


New submission from Vajrasky Kok:

Enable SELinux (by default it is already enabled). Then load tipc module.

# modprobe tipc

Then using whatever account, execute Lib/test/test_socket.py. You'll get:
FAILED (errors=1, skipped=4)
Traceback (most recent call last):
  File "Lib/test/test_socket.py", line 1740, in <module>
    test_main()
  File "Lib/test/test_socket.py", line 1736, in test_main
    test_support.run_unittest(*tests)
  File "/home/sky/Code/python/cpython2.7/Lib/test/test_support.py", line 1251, in run_unittest
    _run_suite(suite)
  File "/home/sky/Code/python/cpython2.7/Lib/test/test_support.py", line 1234, in _run_suite
    raise TestFailed(err)
test.test_support.TestFailed: Traceback (most recent call last):
  File "Lib/test/test_socket.py", line 1705, in testStream
    msg = self.conn.recv(1024)
error: [Errno 13] Permission denied

Attached the patch to skip the test if we don't have sufficient permission to execute the test.

----------
components: Tests
files: skip_test_if_selinux_tipc.patch
keywords: patch
messages: 208088
nosy: vajrasky
priority: normal
severity: normal
status: open
title: test_socket fails if using tipc module and SELinux enabled
type: behavior
versions: Python 2.7, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file33462/skip_test_if_selinux_tipc.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20257>
_______________________________________


More information about the New-bugs-announce mailing list