New submission from Arfrever Frehtes Taifersar Arahesis 
<arfrever....@gmail.com>:

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 
been created with requested permissions. I'm attaching the patch.

----------
files: python-mkdir.patch
keywords: patch
messages: 129720
nosy: Arfrever
priority: normal
severity: normal
status: open
title: os.mkdir() and os.mkdirat() don't apply SUID/SGID permissions
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3
Added file: http://bugs.python.org/file20950/python-mkdir.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11355>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to