[New-bugs-announce] [issue11355] os.mkdir() and os.mkdirat() don't apply SUID/SGID permissions
Arfrever Frehtes Taifersar Arahesis
report at bugs.python.org
Mon Feb 28 20:40:38 CET 2011
New submission from Arfrever Frehtes Taifersar Arahesis <Arfrever.FTA at 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 <report at bugs.python.org>
<http://bugs.python.org/issue11355>
_______________________________________
More information about the New-bugs-announce
mailing list