[New-bugs-announce] [issue38417] Add support for settting umask in subprocess children

Gregory P. Smith report at bugs.python.org
Tue Oct 8 18:55:39 EDT 2019


New submission from Gregory P. Smith <greg at krypto.org>:

Another use of the deprecated unsafe preexec_fn was to call os.umask in the child prior to exec.

As seen in https://github.com/freeipa/freeipa/pull/3769 (see the code in there).

We should add an explicit feature for this to avoid people's desire for preexec_fn or for the heavyweight workaround of an intermediate shell calling umask before doing another exec.

Any common preexec_fn uses that we can encode into supported parameters will help our ability to remove the ill fated preexec_fn misfeature in the future.

----------
messages: 354238
nosy: gregory.p.smith
priority: high
severity: normal
stage: needs patch
status: open
title: Add support for settting umask in subprocess children
type: enhancement
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38417>
_______________________________________


More information about the New-bugs-announce mailing list