-
Notifications
You must be signed in to change notification settings - Fork 11
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
multiprocessing.connection
uses non-configurable non-standard hash for authentification on CentOS - incompatible to upstream CPython
#73
Comments
Both interesting and very bizarre. Thanks for the report. Yet another CentOS issue. So bottom line why this happens: It appears that CentOS applied its own patch, essentially swapping the old & insecure MD5-hash algorithm for something else (in the multiprocessing module, at least). In standard CPython 3.9, the latest version, it's still MD5, by the way. CentOS, by default, uses a different hashing algorithm in this place, which causes a "conflict" with the original implementation in the Windows-version of the interpreter. That's why you are getting those authentication errors. Looking at the relevant CentOS package, it appears that it has been patched to use As a temporary, and very ugly patch on |
Thanks for the quick response. I now understand the problem a bit more. So they made CentOS more secure but incompatible with other systems. |
multiprocessing.connection
uses non-configurable non-standard hash for authentification on CentOS - incompatible to upstream CPython
Any luck with patching the Windows-Python interpreter's standard library? |
Not yet. I was patching the CentOS library instead... It undermines the higher security but it was easier. Just copied the standard multiprocessing package to my user packages and changed back to md5 ( |
Hi all,
I'am using zugbrucke on different machines to handle Windows DLL files. On CentOS with Python 3.6.8 zugbruecke fails with often repeated error message (over 2000 times):
On openSUSE Leap 15.2 with Python 3.6.10 there is no error and it runs flawlessly.
There is a difference in the multiprocessing.py in those two Python versions just before the error occurs.
openSUSE Leap 15.2 / multiprocessing.py:line721 (Python3.6.10)
CentOS / multiprocessing.py:line725 (Python3.6.8)
It's curious, on github this file is different for Python3.6.8 [1]
I'm not sure if this is a bug in zugbruecke or if it is related to the older version of python (multiprocessing). The example for multiprocessing connections was working on CentOS [2].
I solved the problem by using the multiprocessing module of openSUSE Leap 15.2 on the machine with CentOS7. It's just a workaround but the best I could find for now.
[1] https://github.com/python/cpython/blob/v3.6.8/Lib/multiprocessing/connection.py#L721
[2] https://docs.python.org/3.6/library/multiprocessing.html#multiprocessing.connection.wait
The text was updated successfully, but these errors were encountered: