-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Open
Labels
Description
Feature description
Termux should circumvent Play Store policy of restricting execution of arbitrary code from third parties, by imitating what Google Chrome does. Bundling packages into APKs is certainly not the way to go.
- Consult Firefox and Chrome as to how it executes external code (e.g. JavaScript) while still managing to comply with Play Store policy.
- Run user code in a sandbox (
isolated_app
?), emulating forbidden system calls as needed. (Note that we already do this with execve to handle#!/usr/bin/...
shebangs).- Additional permissions to control system can be granted through some kind of broker, which user code can communicate to via IPC.
- Don't rely exclusively on ptrace through; rather, approach the problem with a mix of ptrace+seccomp+recompilation.
- Circumvent W^X restriction by using a custom binary loader (instead of e.g.
/system/bin/linker
).
Reference implementation
N/A
Related
mguinhos, GJoe2, luisdavim, RokeJulianLockhart, libreom and 10 moreIsakTheHacker, agatemosu, KimetsuAndrea and ghishadowjoulaud, sylirre, Leif-W, UPSAtwal, darkgeek and 6 more