summaryrefslogtreecommitdiffstats
path: root/Doc/library/resource.rst
diff options
context:
space:
mode:
authorSaiyang Gou <gousaiyang@163.com>2020-02-13 07:47:42 (GMT)
committerGitHub <noreply@github.com>2020-02-13 07:47:42 (GMT)
commit7514f4f6254f4a2d13ea8e5632a8e5f22b637e0b (patch)
tree9010a9077eaee0c66eea85e36f60086de6fba731 /Doc/library/resource.rst
parent597ebed748d0b0c061f8c108bd98270d103286c1 (diff)
downloadcpython-7514f4f6254f4a2d13ea8e5632a8e5f22b637e0b.zip
cpython-7514f4f6254f4a2d13ea8e5632a8e5f22b637e0b.tar.gz
cpython-7514f4f6254f4a2d13ea8e5632a8e5f22b637e0b.tar.bz2
bpo-39184: Add audit events to functions in `fcntl`, `msvcrt`, `os`, `resource`, `shutil`, `signal`, `syslog` (GH-18407)
Diffstat (limited to 'Doc/library/resource.rst')
-rw-r--r--Doc/library/resource.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/resource.rst b/Doc/library/resource.rst
index 3573da7..e4eac43 100644
--- a/Doc/library/resource.rst
+++ b/Doc/library/resource.rst
@@ -78,6 +78,9 @@ this module for those platforms.
VxWorks only supports setting :data:`RLIMIT_NOFILE`.
+ .. audit-event:: resource.setrlimit resource,limits resource.setrlimit
+
+
.. function:: prlimit(pid, resource[, limits])
Combines :func:`setrlimit` and :func:`getrlimit` in one function and
@@ -94,6 +97,8 @@ this module for those platforms.
:exc:`PermissionError` when the user doesn't have ``CAP_SYS_RESOURCE`` for
the process.
+ .. audit-event:: resource.prlimit pid,resource,limits resource.prlimit
+
.. availability:: Linux 2.6.36 or later with glibc 2.13 or later.
.. versionadded:: 3.4