mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-06 13:05:47 +00:00
Docs: describe the anti-cheat signal mask fix and the container procfs view
This commit is contained in:
1 parent
ee432f444d
commit
98df621d9c
1 file changed
+17
-1
@@ -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/<pid>/mounts` and `/proc/<pid>/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.
|
||||
Reference in new issue
Block a user