diff options
author | Christian Heimes <christian@python.org> | 2022-06-06 10:08:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-06 10:08:07 (GMT) |
commit | 4c71d22c4f9fdde6f2234e7dc6a862419cd6fd98 (patch) | |
tree | 87b2959866966a09f8a5540ce09bdce2b4ddc9d5 /Tools | |
parent | 9081bbd036934ab435291db9d32d02fd42282951 (diff) | |
download | cpython-4c71d22c4f9fdde6f2234e7dc6a862419cd6fd98.zip cpython-4c71d22c4f9fdde6f2234e7dc6a862419cd6fd98.tar.gz cpython-4c71d22c4f9fdde6f2234e7dc6a862419cd6fd98.tar.bz2 |
gh-90473: WASI requires proper open(2) flags (GH-93529)
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/wasm/README.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Tools/wasm/README.md b/Tools/wasm/README.md index 6bb9bd9..3b7a7ae 100644 --- a/Tools/wasm/README.md +++ b/Tools/wasm/README.md @@ -235,6 +235,9 @@ are: call read/write/accept on a file descriptor that is passed into the process. - ``socket.gethostname()`` and host name resolution APIs like ``socket.gethostbyname()`` are not implemented and always fail. +- ``open(2)`` checks flags more strictly. Caller must pass either + ``O_RDONLY``, ``O_RDWR``, or ``O_WDONLY`` to ``os.open``. Directory file + descriptors must be created with flags ``O_RDONLY | O_DIRECTORY``. - ``chmod(2)`` is not available. It's not possible to modify file permissions, yet. A future version of WASI may provide a limited ``set_permissions`` API. - User/group related features like ``os.chown()``, ``os.getuid``, etc. are |