Skip to content

Commit a1182d0

Browse files
committed
gh-158916: Clarify mode in os.open audit events
1 parent 0fba211 commit a1182d0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎Doc/library/os.rst‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,6 +1352,10 @@ as internal buffering of data.
13521352

13531353
.. audit-event:: open path,mode,flags os.open
13541354

1355+
In this event, *mode* is always ``None``. Access modes and other options
1356+
are reported in *flags*. The file permission bits passed to this function
1357+
as *mode* are not included in the event.
1358+
13551359
.. versionchanged:: 3.4
13561360
The new file descriptor is now non-inheritable.
13571361

0 commit comments

Comments
 (0)