Commit d398cba
authored
fix(backend): use epoll on Android — io_uring is blocked by seccomp (#215)
Android blocks io_uring syscalls via seccomp-bpf, so it cannot be used
on real devices. Default to epoll when targeting Android.
Ref:
https://security.googleblog.com/2023/06/learnings-from-kctf-vrps-42-linux.html1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| |||
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
30 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
31 | 37 | | |
32 | 38 | | |
33 | 39 | | |
| |||
0 commit comments