Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-94632: document the subprocess need for extra_groups=() with user= (
…GH-148129)

(cherry picked from commit a1cf443)

Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
  • Loading branch information
gpshead authored and miss-islington committed Apr 5, 2026
commit 8d7e485edc31fe987c9758c46098db4308f3e28a
6 changes: 6 additions & 0 deletions Doc/library/subprocess.rst
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,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

Expand Down
Loading