[New-bugs-announce] [issue27654] [Patch] Use arc4random_buf() on CloudABI

Ed Schouten report at bugs.python.org
Sat Jul 30 06:56:14 EDT 2016


New submission from Ed Schouten:

While porting Python over to CloudABI (https://mail.python.org/pipermail/python-dev/2016-July/145708.html), we stumbled upon a small issue that caused the build to fail.

As CloudABI is a sandboxed runtime environment, there is no support for accessing the global filesystem namespace. This means that dev_urandom_noraise()/dev_urandom_python() are not capable of accessing /dev/urandom.

The attached change extends these functions to use CloudABI's arc4random_buf() function, which is also present on a lot of other operating systems (the BSDs, Mac OS X, etc). I'm not enabling the use of arc4random_buf() on those operating systems yet, as that should likely be decided by the people responsible for those ports.

Alternatively, if we do think arc4random_buf() should be used on all operating systems that support it, we can extend Autoconf to test for its presence. Be sure to let me know and I'll update the patch accordingly.

----------
components: Interpreter Core
files: patch-arc4random
messages: 271680
nosy: EdSchouten
priority: normal
severity: normal
status: open
title: [Patch] Use arc4random_buf() on CloudABI
versions: Python 3.6
Added file: http://bugs.python.org/file43950/patch-arc4random

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27654>
_______________________________________


More information about the New-bugs-announce mailing list