Issue18673
Created on 2013-08-06 19:43 by christian.heimes, last changed 2022-04-11 14:57 by admin. This issue is now closed.
| Messages (7) | |||
|---|---|---|---|
| msg194569 - (view) | Author: Christian Heimes (christian.heimes) * ![]() |
Date: 2013-08-06 19:43 | |
Linux 3.11 gets a new flag for open(): Quote from http://lwn.net/Articles/557314/ --- The new O_TMPFILE option to the open() and openat() system calls allows filesystems to optimize the creation of temporary files — files which need not be visible in the filesystem. When O_TMPFILE is present, the provided pathname is only used to locate the containing directory (and thus the filesystem where the temporary file should be). So, among other things, programs using O_TMPFILE should have fewer concerns about vulnerabilities resulting from symbolic link attacks. --- Tasks: - add O_TEMPFILE to posixmodule.c - use O_TEMPFILE in tempfile module when it's supported by the current kernel |
|||
| msg194580 - (view) | Author: Antoine Pitrou (pitrou) * ![]() |
Date: 2013-08-06 21:14 | |
> - use O_TEMPFILE in tempfile module when it's supported by the current > kernel I assume this would only be done in TemporaryFile()? |
|||
| msg194769 - (view) | Author: STINNER Victor (vstinner) * ![]() |
Date: 2013-08-09 20:25 | |
> use O_TEMPFILE in tempfile module when it's supported by the current kernel How do you detect that a kernel does not support the flag? Try to use the flag and handle the error? |
|||
| msg195320 - (view) | Author: Roundup Robot (python-dev) ![]() |
Date: 2013-08-16 12:38 | |
New changeset f6034602410c by Christian Heimes in branch 'default': Issue #18673: Add O_TMPFILE to os module. O_TMPFILE requires Linux kernel http://hg.python.org/cpython/rev/f6034602410c New changeset 815b7bb3b08d by Christian Heimes in branch 'default': Issue #18673: Add versionchanged to docs http://hg.python.org/cpython/rev/815b7bb3b08d |
|||
| msg195322 - (view) | Author: Christian Heimes (christian.heimes) * ![]() |
Date: 2013-08-16 12:56 | |
I have added O_TMPFILE to the os module. I like to hold off with the actual use of O_TMPFILE in tempfile until Python 3.5. The feature is too new and I don't have any way to test it. Some people have reported file system corruption in 3.11-rc4, too. |
|||
| msg213093 - (view) | Author: Roundup Robot (python-dev) ![]() |
Date: 2014-03-10 22:11 | |
New changeset 0525f7268067 by R David Murray in branch 'default': whatsnew: os.open O_TMPFILE (#18673). http://hg.python.org/cpython/rev/0525f7268067 |
|||
| msg253194 - (view) | Author: Марк Коренберг (socketpair) * | Date: 2015-10-19 21:18 | |
Just for link. Issue #21515 — tempfile use this functionality now. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:57:49 | admin | set | github: 62873 |
| 2015-10-19 21:18:27 | socketpair | set | nosy:
+ socketpair messages: + msg253194 |
| 2014-03-10 22:11:18 | python-dev | set | messages: + msg213093 |
| 2014-01-30 14:49:19 | jwilk | set | nosy:
+ jwilk |
| 2013-08-16 12:56:28 | christian.heimes | set | status: open -> closed title: Add and use O_TMPFILE for Linux 3.11 -> Add O_TMPFILE to os module messages: + msg195322 resolution: fixed |
| 2013-08-16 12:38:01 | python-dev | set | nosy:
+ python-dev messages: + msg195320 |
| 2013-08-10 01:58:25 | tshepang | set | nosy:
+ tshepang |
| 2013-08-09 20:25:45 | vstinner | set | nosy:
+ vstinner messages: + msg194769 |
| 2013-08-08 14:02:21 | jcea | set | nosy:
+ jcea |
| 2013-08-06 21:14:50 | pitrou | set | nosy:
+ pitrou messages: + msg194580 components:
- Extension Modules |
| 2013-08-06 19:43:40 | christian.heimes | create | |

