diff options
author | Sergey A. Osokin <osa@FreeBSD.org.ru> | 2024-11-22 22:13:18 -0500 |
---|---|---|
committer | Andrew Clayton <a.clayton@nginx.com> | 2024-11-26 18:05:07 +0000 |
commit | 6cc4d706fba2577babc076ad0d2ef145c0c648d7 (patch) | |
tree | 67f7ebd867ada399801ba490478d9824d92d854a /src/nxt_pcre.c | |
parent | 4f041328a9ee343ef87b1e2f571daed0b3cef37c (diff) | |
download | unit-6cc4d706fba2577babc076ad0d2ef145c0c648d7.tar.gz unit-6cc4d706fba2577babc076ad0d2ef145c0c648d7.tar.bz2 |
wasm: Fix build with wasmtime 27.0.0
Wasmtime 27.0.0 adjusted the C API to start flowing through the
directory and file permission bits of the underlying rust
wasi_config_preopen_dir() implementation.
The directory permissions control whether a directory is read-only or
whether you can create/modify files within.
You always need at least WASMTIME_WASI_DIR_PERMS_READ.
The file permissions control whether you can read or read/write files.
WASMTIME_WASI_FILE_PERMS_WRITE seems to imply
WASMTIME_WASI_FILE_PERMS_READ (but we add both just to make it clear
what we want)
[ Permissions tweak and commit message - Andrew ]
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions