[issue18673] Add and use O_TMPFILE for Linux 3.11

2013-08-16 Thread Roundup Robot

Roundup Robot added the comment:

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

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18673] Add and use O_TMPFILE for Linux 3.11

2013-08-09 Thread Tshepang Lekhonkhobe

Changes by Tshepang Lekhonkhobe :


--
nosy: +tshepang

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18673] Add and use O_TMPFILE for Linux 3.11

2013-08-09 Thread STINNER Victor

STINNER Victor added the comment:

> 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?

--
nosy: +haypo

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18673] Add and use O_TMPFILE for Linux 3.11

2013-08-08 Thread Jesús Cea Avión

Changes by Jesús Cea Avión :


--
nosy: +jcea

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18673] Add and use O_TMPFILE for Linux 3.11

2013-08-06 Thread Antoine Pitrou

Antoine Pitrou added the comment:

> - use O_TEMPFILE in tempfile module when it's supported by the current 
> kernel

I assume this would only be done in TemporaryFile()?

--
components:  -Extension Modules
keywords: +easy
nosy: +pitrou

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18673] Add and use O_TMPFILE for Linux 3.11

2013-08-06 Thread Christian Heimes

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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com