Stream: git-wasmtime

Topic: wasmtime / PR #14803 Gate Android openat2 by device API l...


view this post on Zulip Wasmtime GitHub notifications bot (Oct 19 2026 at 10:23):

Destructor17 opened PR #14803 from webrogue-runtime:android-openat2-api-gate to bytecodealliance:main:

Closes https://github.com/bytecodealliance/wasmtime/issues/14496

Android's Seccomp policy prior API level 37 is to raise a fatal signal on openat2 syscall instead of returning ENOSYS, and it makes Wasmtime crash.
Recently released API level 37 finally allowed openat2 (see SECCOMP_ALLOWLIST_COMMON.TXT, it now includes openat2).

Device's API level needs check at runtime. I did my best to avoid dependency on ndk crate, so dlsym and some unsafe code is used to detect API level. CHECKED flag is inspired by crates/wasi/src/filesystem/primitives/unix/freebsd.rs.

Tested by running tests from wasmtime-wasi crate on real Android 13 (API level 33) device and x64 emulator of Android 17 (API level 37). Now all tests pass, with the exception of tests that can't run because Android's SELinux disallows hard links. Testing is done by AI and involved building Rust code using cargo-ndk, building an Android Gradle project just because running binary directly using adb shell applies slightly different Seccomp rules, and other dirty hacks, so I think I shouldn't include such test script. Some manual testing is done too.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 19 2026 at 10:23):

Destructor17 requested rvolosatovs for a review on PR #14803.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 19 2026 at 10:23):

Destructor17 requested wasmtime-wasi-reviewers for a review on PR #14803.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 19 2026 at 10:23):

Destructor17 requested fitzgen for a review on PR #14803.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 19 2026 at 10:23):

Destructor17 requested wasmtime-default-reviewers for a review on PR #14803.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 19 2026 at 12:57):

github-actions[bot] added the label wasi on PR #14803.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 19 2026 at 14:19):

:thumbs_up: alexcrichton submitted PR review:

Thanks!

view this post on Zulip Wasmtime GitHub notifications bot (Oct 19 2026 at 14:19):

alexcrichton added PR #14803 Gate Android openat2 by device API level to the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 19 2026 at 14:42):

:check: alexcrichton merged PR #14803.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 19 2026 at 14:42):

alexcrichton removed PR #14803 Gate Android openat2 by device API level from the merge queue.


Last updated: Oct 31 2026 at 23:03 UTC