mirror of
https://github.com/python/cpython.git
synced 2026-05-06 12:49:07 -04:00
gh-94632: document the subprocess need for extra_groups=() with user= (GH-148129)
This commit is contained in:
@@ -627,6 +627,12 @@ functions.
|
||||
the value in ``pw_uid`` will be used. If the value is an integer, it will
|
||||
be passed verbatim. (POSIX only)
|
||||
|
||||
.. note::
|
||||
|
||||
Specifying *user* will not drop existing supplementary group memberships!
|
||||
The caller must also pass ``extra_groups=()`` to reduce the group membership
|
||||
of the child process for security purposes.
|
||||
|
||||
.. availability:: POSIX
|
||||
.. versionadded:: 3.9
|
||||
|
||||
|
||||
Reference in New Issue
Block a user