[issue38963] multiprocessing processes seem to "bleed" user information (GID/UID/groups)

Bartosz Kwitniewski report at bugs.python.org
Fri Apr 9 05:41:43 EDT 2021


Bartosz Kwitniewski <zerg-bugs.python.org at uid0.pl> added the comment:

It works as intended - pool of 5 processes is being reused with new data:
- First, 5 processes are created as root,
- in first run of check_permission they drop their privileges to user,
- when they finish processing check_permission function, they are not killed, but provided with new path for processing, therefore they retain their lower privileges,
- when maxtasksperchild=1 is used, processes are killed after single run of check_permission and recreated with root permissions.

----------
nosy: +zerg

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38963>
_______________________________________


More information about the Python-bugs-list mailing list