Skip to content
Merged
Changes from 1 commit
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
Next Next commit
gh-94632: document the subprocess need for extra_groups=() with user=
  • Loading branch information
gpshead committed Apr 5, 2026
commit 8966d851bef4a0406bd55835f3bf5cd6ba0a6aec
6 changes: 6 additions & 0 deletions Doc/library/subprocess.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading