[issue15100] Race conditions in shutil.copy, shutil.copy2 and shutil.copyfile

2018-08-13 Thread Jim Jewett
Jim Jewett added the comment: (Note: I am talking only about the disclosure issue; file corruption would ideally be fixed as far back as possible, though I would be somewhat sympathetic to a "nah, that ain't security, too late" argument.) My current UI shows this as relevant to every

[issue15100] Race conditions in shutil.copy, shutil.copy2 and shutil.copyfile

2018-06-12 Thread Giampaolo Rodola'
Change by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15100] Race conditions in shutil.copy, shutil.copy2 and shutil.copyfile

2016-10-14 Thread Julien Muchembled
Changes by Julien Muchembled : -- nosy: +jm ___ Python tracker ___ ___ Python-bugs-list

[issue15100] Race conditions in shutil.copy, shutil.copy2 and shutil.copyfile

2016-09-08 Thread Christian Heimes
Changes by Christian Heimes : -- priority: normal -> high versions: +Python 2.7, Python 3.5, Python 3.6, Python 3.7 -Python 3.4 ___ Python tracker

[issue15100] Race conditions in shutil.copy, shutil.copy2 and shutil.copyfile

2014-03-18 Thread Jim Jewett
Jim Jewett added the comment: Is this really only 3.4? Since it is security-related, it seems like it should be at least considered for older versions as well. -- nosy: +Jim.Jewett ___ Python tracker rep...@bugs.python.org

[issue15100] Race conditions in shutil.copy, shutil.copy2 and shutil.copyfile

2013-03-24 Thread Charles-François Natali
Charles-François Natali added the comment: That shouldn't be too complicated, but does Windows have fcomod() Co? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15100 ___

[issue15100] Race conditions in shutil.copy, shutil.copy2 and shutil.copyfile

2013-03-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Windows doesn't have fchmod(), but chmod() doesn't do much on it either: “Although Windows supports chmod(), you can only set the file’s read-only flag with it (via the stat.S_IWRITE and stat.S_IREAD constants or a corresponding integer value). All other bits

[issue15100] Race conditions in shutil.copy, shutil.copy2 and shutil.copyfile

2013-03-23 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15100 ___

[issue15100] Race conditions in shutil.copy, shutil.copy2 and shutil.copyfile

2013-03-23 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +neologix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15100 ___ ___ Python-bugs-list mailing

[issue15100] Race conditions in shutil.copy, shutil.copy2 and shutil.copyfile

2012-07-05 Thread Brad Tilley
Additionally, shutil.copyfile procedure seems to have a problem with symlinks that could result in the corruption of content of any file on filesystem (in favorable conditions). --- Does the shutil.copyfile corruption issue impact Python 2.6? And, what sort of favorable conditions need to exist

[issue15100] Race conditions in shutil.copy, shutil.copy2 and shutil.copyfile

2012-06-24 Thread Hynek Schlawack
Changes by Hynek Schlawack h...@ox.cx: -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15100 ___ ___

[issue15100] Race conditions in shutil.copy, shutil.copy2 and shutil.copyfile

2012-06-19 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: It's not that simple as we currently use public functions for copying the files and the metadata. copyfile is explicitly _not_ supposed to copy any metadata so we can't patch it up to do so. Also that won't help for other stat xattr data so this

[issue15100] Race conditions in shutil.copy, shutil.copy2 and shutil.copyfile

2012-06-18 Thread Radoslaw A. Zarzynski
New submission from Radoslaw A. Zarzynski radoslaw.zarzyn...@student.put.poznan.pl: shutil.copy and shutil.copy2 first copy a file content and afterwards change permissions of a destination file. Unfortunately, the sequence isn't atomical and may lead to disclosure of matter of any file that

[issue15100] Race conditions in shutil.copy, shutil.copy2 and shutil.copyfile

2012-06-18 Thread Radoslaw A. Zarzynski
Changes by Radoslaw A. Zarzynski radoslaw.zarzyn...@student.put.poznan.pl: Added file: http://bugs.python.org/file26043/python_shutil_copy_with_umask.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15100

[issue15100] Race conditions in shutil.copy, shutil.copy2 and shutil.copyfile

2012-06-18 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- components: +IO nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15100 ___ ___

[issue15100] Race conditions in shutil.copy, shutil.copy2 and shutil.copyfile

2012-06-18 Thread Hynek Schlawack
Changes by Hynek Schlawack h...@ox.cx: -- nosy: +hynek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15100 ___ ___ Python-bugs-list mailing list