Conversation

Replying to and
Something else that comes to mind is libffi. It implements FFI via a JIT compiler generating trampolines, and they have hard-wired support for SELinux execmem where they work around support for dynamic code generating being disallowed in-memory by doing it via /tmp. Yet...
1
Replying to and
... a proper policy will disallow doing it via the filesystem in any way too. Only something like a package manager generally actually needs to expose the attack surface of being able to create files which could be executed. They could definitely handle normal cases without JIT.
1
Show replies
Replying to
Chromium has an isolated GPU process and I've wanted to replicate that as a generic feature for all Android apps including Chromium on Android. Fortunately, the vast majority of the code/complexity for GPU drivers is in userspace libs, not their kernel drivers. One good thing.
1