gh-94632: document the subprocess need for extra_groups=() with user= (GH-148129)

This commit is contained in:
Gregory P. Smith
2026-04-05 11:07:07 -07:00
committed by GitHub
parent 77fc2f5a5e
commit a1cf4430ed
+6
View File
@@ -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