mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
[3.9] gh-118486: Support mkdir(mode=0o700) on Windows (GH-118488) (GH-118741)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
This commit is contained in:
parent
b228655c22
commit
5130731c9e
6 changed files with 107 additions and 3 deletions
|
|
@ -0,0 +1,4 @@
|
|||
:func:`os.mkdir` on Windows now accepts *mode* of ``0o700`` to restrict
|
||||
the new directory to the current user. This fixes CVE-2024-4030
|
||||
affecting :func:`tempfile.mkdtemp` in scenarios where the base temporary
|
||||
directory is more permissive than the default.
|
||||
Loading…
Add table
Add a link
Reference in a new issue