[issue18673] Add and use O_TMPFILE for Linux 3.11

Christian Heimes report at bugs.python.org
Tue Aug 6 21:43:40 CEST 2013


New submission from Christian Heimes:

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

----------
components: Extension Modules, Library (Lib)
messages: 194569
nosy: christian.heimes
priority: normal
severity: normal
stage: needs patch
status: open
title: Add and use O_TMPFILE for Linux 3.11
type: enhancement
versions: Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18673>
_______________________________________


More information about the Python-bugs-list mailing list