New submission from Ed Schouten:

CloudABI is a POSIX-like strongly sandboxed runtime environment, for which we 
got Python to work 
(https://mail.python.org/pipermail/python-dev/2016-July/145708.html). Patches 
for this are slowly being upstreamed.

As CloudABI uses a capability-based security model as opposed to a 
discretionary access control system, there is no support for UNIX credentials 
and permissions. This means that umask() is also absent.

It looks like umask() is only used by Python in its posixmodule. The attached 
patch adds a new Autoconf check and adds the proper #if logic around its 
implementation.

Changes to the Autoconf/Automake files are not provided by this patch, as my 
versions of these tools generate files containing unnecessary changes.

----------
components: Extension Modules
files: umask-optional.diff
keywords: patch
messages: 279182
nosy: EdSchouten
priority: normal
severity: normal
status: open
title: [Patch] Make os.umask() optional
versions: Python 3.6
Added file: http://bugs.python.org/file45183/umask-optional.diff

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

Reply via email to