Message279183
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.
CloudABI uses a capability-based security model, similar to Capsicum (https://www.cl.cam.ac.uk/research/security/capsicum/). With this model, the file system can only be accessed by using file descriptors to directories. Files inside of them can be used by using openat() (in Python: os.open(dirfd=...). This means that there is no need to provide support for process working directories. chdir() is therefore entirely absent.
It looks like chdir() 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. |
|
Date |
User |
Action |
Args |
2016-10-22 05:46:35 | EdSchouten | set | recipients:
+ EdSchouten |
2016-10-22 05:46:35 | EdSchouten | set | messageid: <1477115195.1.0.580287867342.issue28502@psf.upfronthosting.co.za> |
2016-10-22 05:46:35 | EdSchouten | link | issue28502 messages |
2016-10-22 05:46:34 | EdSchouten | create | |
|