]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-97514: Don't use Linux abstract sockets for multiprocessing (#98501)
authorGregory P. Smith <greg@krypto.org>
Thu, 20 Oct 2022 22:30:09 +0000 (15:30 -0700)
committerGitHub <noreply@github.com>
Thu, 20 Oct 2022 22:30:09 +0000 (15:30 -0700)
commit49f61068f49747164988ffc5a442d2a63874fc17
tree48001da7207b0a087954e2007d544d2adcbb470a
parent39bc70e267929600057d62103739b7160e69dc8b
gh-97514: Don't use Linux abstract sockets for multiprocessing (#98501)

Linux abstract sockets are insecure as they lack any form of filesystem
permissions so their use allows anyone on the system to inject code into
the process.

This removes the default preference for abstract sockets in
multiprocessing introduced in Python 3.9+ via
https://github.com/python/cpython/pull/18866 while fixing
https://github.com/python/cpython/issues/84031.

Explicit use of an abstract socket by a user now generates a
RuntimeWarning.  If we choose to keep this warning, it should be
backported to the 3.7 and 3.8 branches.
Lib/multiprocessing/connection.py
Misc/NEWS.d/next/Security/2022-09-07-10-42-00.gh-issue-97514.Yggdsl.rst [new file with mode: 0644]