[issue11355] os.mkdir() and os.mkdirat() don't apply SUID/SGID permissions

2011-03-05 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue11355] os.mkdir() and os.mkdirat() don't apply SUID/SGID permissions

2011-03-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: os.makedir (and, I presume, makedirat) are intentionally thin wrapperws around the libc system calls >From #9299, msg111014 (Guido) "I wonder if os.mkdir() should not be left alone (so as to continue to match the system call most exactly, as is our convention)

[issue11355] os.mkdir() and os.mkdirat() don't apply SUID/SGID permissions

2011-02-28 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: A side effect of this patch is that it fixes failure of test_exist_ok_existing_directory() from test_os.py in situation when top-level directory of Python sources has SGID bit set. (test_exist_ok_existing_directory() exists only in Python

[issue11355] os.mkdir() and os.mkdirat() don't apply SUID/SGID permissions

2011-02-28 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : Removed file: http://bugs.python.org/file20950/python-mkdir.patch ___ Python tracker ___ ___

[issue11355] os.mkdir() and os.mkdirat() don't apply SUID/SGID permissions

2011-02-28 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: The new patch restores respecting of umask. -- Added file: http://bugs.python.org/file20951/python-mkdir.patch ___ Python tracker

[issue11355] os.mkdir() and os.mkdirat() don't apply SUID/SGID permissions

2011-02-28 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue11355] os.mkdir() and os.mkdirat() don't apply SUID/SGID permissions

2011-02-28 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis : os.mkdir() and os.mkdirat() use libc's mkdir() and mkdirat(), which can ignore SUID/SGID permissions. This problem occurs at least on systems using glibc. The solution is to call chmod() / fchmodat() to ensure that given directory has