diff options
author | Saiyang Gou <gousaiyang@163.com> | 2020-02-05 00:15:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-05 00:15:00 (GMT) |
commit | 95f60010219e142a436fae18e1695cbc45407afe (patch) | |
tree | f908dd8bad7c24219c72f6602d47f1496a4baf86 /Lib | |
parent | 40e547dfbb9052ca0c667b242f6825ed1c23c195 (diff) | |
download | cpython-95f60010219e142a436fae18e1695cbc45407afe.zip cpython-95f60010219e142a436fae18e1695cbc45407afe.tar.gz cpython-95f60010219e142a436fae18e1695cbc45407afe.tar.bz2 |
bpo-39184: Add audit events to command execution functions in os and pty modules (GH-17824)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/pty.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -8,6 +8,7 @@ from select import select import os +import sys import tty __all__ = ["openpty","fork","spawn"] @@ -151,6 +152,7 @@ def spawn(argv, master_read=_read, stdin_read=_read): """Create a spawned process.""" if type(argv) == type(''): argv = (argv,) + sys.audit('pty.spawn', argv) pid, master_fd = fork() if pid == CHILD: os.execlp(argv[0], *argv) |