mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-37363: Add audit events for a range of modules (GH-14301)
This commit is contained in:
parent
9bbf4d7083
commit
60419a7e96
37 changed files with 165 additions and 18 deletions
|
@ -585,6 +585,13 @@ functions.
|
|||
with Popen(["ifconfig"], stdout=PIPE) as proc:
|
||||
log.write(proc.stdout.read())
|
||||
|
||||
.. audit-event:: subprocess.Popen "executable args cwd env"
|
||||
|
||||
Popen and the other functions in this module that use it raise an
|
||||
:ref:`auditing event <auditing>` ``subprocess.Popen`` with arguments
|
||||
``executable``, ``args``, ``cwd``, ``env``. The value for ``args``
|
||||
may be a single string or a list of strings, depending on platform.
|
||||
|
||||
.. versionchanged:: 3.2
|
||||
Added context manager support.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue