diff options
author | Christian Heimes <christian@python.org> | 2022-06-19 16:28:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-19 16:28:55 (GMT) |
commit | 2702e408fd0e0dd7aec396b4cf8c7ce9caae81d8 (patch) | |
tree | f3c5b2459a940b3b67e0059b7a2ed936cb6f5cf0 /Tools | |
parent | 476d30250811e185615dfb971c6a810cac2093bd (diff) | |
download | cpython-2702e408fd0e0dd7aec396b4cf8c7ce9caae81d8.zip cpython-2702e408fd0e0dd7aec396b4cf8c7ce9caae81d8.tar.gz cpython-2702e408fd0e0dd7aec396b4cf8c7ce9caae81d8.tar.bz2 |
gh-84461: Fix Emscripten umask and permission issues (GH-94002)
- Emscripten's default umask is too strict, see
https://github.com/emscripten-core/emscripten/issues/17269
- getuid/getgid and geteuid/getegid are stubs that always return 0
(root). Disable effective uid/gid syscalls and fix tests that use
chmod() current user.
- Cannot drop X bit from directory.
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/wasm/config.site-wasm32-emscripten | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Tools/wasm/config.site-wasm32-emscripten b/Tools/wasm/config.site-wasm32-emscripten index 6420edc..a31d60d 100644 --- a/Tools/wasm/config.site-wasm32-emscripten +++ b/Tools/wasm/config.site-wasm32-emscripten @@ -43,6 +43,13 @@ ac_cv_func_symlinkat=no ac_cv_func_lchmod=no ac_cv_func_lchown=no +# geteuid / getegid are stubs and always return 0 (root). The stub breaks +# code that assume effective user root has special permissions. +ac_cv_func_geteuid=no +ac_cv_func_getegid=no +ac_cv_func_seteuid=no +ac_cv_func_setegid=no + # Syscalls not implemented in emscripten # [Errno 52] Function not implemented ac_cv_func_preadv2=no |