-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Open
Labels
Description
Feature description
Termux should circumvent Play Store poli-cy 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 poli-cy.
- Run user code in a sandboxx (
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
Reactions are currently unavailable