From 98df621d9ce7c65f4edafeedde31235240bd3df4 Mon Sep 17 00:00:00 2001 From: maxjivi05 Date: Thu, 3 Dec 2026 11:14:04 -0500 Subject: [PATCH] Docs: describe the anti-cheat signal mask fix and the container procfs view --- docs/development/anti-cheat.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/docs/development/anti-cheat.md b/docs/development/anti-cheat.md index 5abd8e0df1..f7507f2b7c 100644 --- a/docs/development/anti-cheat.md +++ b/docs/development/anti-cheat.md @@ -26,8 +26,24 @@ game in Steam always runs it under FEX. ## Why the x86-64 build needs its own Wine patches Android kernels use 39-bit user address spaces. Easy Anti-Cheat's launcher maps fixed memory at -`0x7001_0000_0000`, which FEX serves from emulated guest pages (`tools/fex/patches/0026`). The x86-64 Wine +`0x7001_0000_0000`, which FEX serves from emulated guest pages (`tools/fex/patches/0027`). The x86-64 Wine in DroidDeck-Proton carries `ntdll-fixed-allocations-above-host-address-limit.patch` (fixed mappings above the host limit go to the emulator) and `ntdll-keep-libc-in-native-syscall-dispatch-range.patch` (the re-armed syscall user dispatch range keeps libc native). Stock x86-64 Proton stops after "Hack native syscalls" on the same game. + +Easy Anti-Cheat's launcher attaches to the game with ptrace, stops it on a `rt_sigprocmask` call, runs its +own loader and restores the registers it saved at the stop. The call then returns `ENOSYS` without writing +the old mask, as it does on a desktop kernel. `ntdll-retry-blocking-signals-dropped-by-a-tracer.patch` +retries the block once when it fails, so Wine never restores an uninitialised mask that blocks `SIGSYS`. + +## The container's procfs + +Android mounts `/proc` with `hidepid=invisible,gid=3009`, and Easy Anti-Cheat refuses that mount with +launch error 261. Without root, user namespaces or PID namespaces, no procfs instance without those options +can be mounted. Every program in the container runs as the app's user and already sees all of the +container's processes, as it would in a PID-namespaced sandbox on a desktop, so FEX's emulated +`/proc//mounts` and `/proc//mountinfo` show the proc mount without `hidepid=`, `gid=` and +`subset=` (`tools/fex/patches/0029`). Only x86 programs under FEX see this view; every other line of the +table is the host's. Processes of other Android users stay hidden, as host processes do from a desktop +sandbox.