mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-39184: Add audit events to command execution functions in os and pty modules (GH-17824)
This commit is contained in:
parent
40e547dfbb
commit
95f6001021
5 changed files with 56 additions and 7 deletions
|
@ -3314,6 +3314,8 @@ to be ignored.
|
|||
you can check whether or not it is available using :data:`os.supports_fd`.
|
||||
If it is unavailable, using it will raise a :exc:`NotImplementedError`.
|
||||
|
||||
.. audit-event:: os.exec path,args,env os.execl
|
||||
|
||||
.. availability:: Unix, Windows.
|
||||
|
||||
.. versionadded:: 3.3
|
||||
|
@ -3670,6 +3672,8 @@ written in Python, such as a mail server's external command delivery program.
|
|||
:c:data:`POSIX_SPAWN_SETSCHEDPARAM` and :c:data:`POSIX_SPAWN_SETSCHEDULER`
|
||||
flags.
|
||||
|
||||
.. audit-event:: os.posix_spawn path,argv,env os.posix_spawn
|
||||
|
||||
.. versionadded:: 3.8
|
||||
|
||||
.. availability:: Unix.
|
||||
|
@ -3684,6 +3688,8 @@ written in Python, such as a mail server's external command delivery program.
|
|||
for the *executable* file in the list of directories specified by the
|
||||
:envvar:`PATH` environment variable (in the same way as for ``execvp(3)``).
|
||||
|
||||
.. audit-event:: os.posix_spawn path,argv,env os.posix_spawnp
|
||||
|
||||
.. versionadded:: 3.8
|
||||
|
||||
.. availability:: See :func:`posix_spawn` documentation.
|
||||
|
@ -3784,6 +3790,8 @@ written in Python, such as a mail server's external command delivery program.
|
|||
L = ['cp', 'index.html', '/dev/null']
|
||||
os.spawnvpe(os.P_WAIT, 'cp', L, os.environ)
|
||||
|
||||
.. audit-event:: os.spawn mode,path,args,env os.spawnl
|
||||
|
||||
.. availability:: Unix, Windows. :func:`spawnlp`, :func:`spawnlpe`, :func:`spawnvp`
|
||||
and :func:`spawnvpe` are not available on Windows. :func:`spawnle` and
|
||||
:func:`spawnve` are not thread-safe on Windows; we advise you to use the
|
||||
|
@ -3853,6 +3861,8 @@ written in Python, such as a mail server's external command delivery program.
|
|||
function is not resolved until this function is first called. If the function
|
||||
cannot be resolved, :exc:`NotImplementedError` will be raised.
|
||||
|
||||
.. audit-event:: os.startfile path,operation os.startfile
|
||||
|
||||
.. availability:: Windows.
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue