4 ms·
Notably on iOS there's no good way to isolate unsafe native libraries from the rest of your app without violating app store policies, because Apple enforces app
by saddlerustle 4y ago
Notably on iOS there's no good way to isolate unsafe native libraries from the rest of your app without violating app store policies, because Apple enforces apps to be single process and doesn't allow use of its own sandboxing apis.
- pjmlp 4y agoWhen most code is Objective-C it hardly matters anyway.
- justapassenger 4y agoYou only need a bug in a single line of code of your dependency to compromise the whole app. Most of the code doesn’t matter for security.
- pjmlp 4y agoThe usual argument that safer languages are needless, because bugs happen anyway, yet Apple is going Swift, and adopting hardware mitigations to fix these kind of issues.
- saagarjha 4y agoHardware mitigations which you can’t use?
- AlotOfReading 4y agoI'm pretty sure they're talking about things like PAC, which are are definitely available to apps (and I think even required?).
- fsociety 4y agoPlenty of mobile code, especially at large companies like this, rely on a ton of C code. It makes it easier to support features on both Android and iOS. I’m sure there are more benefits I’m not aware of.
- pjmlp 4y agoBenefits that security researchers appreciate as job security.
- londons_explore 4y agoYou can compile your less trusted libraries to webassembly and then run them in a webview?
- mattnewton 4y agoThat sounds like a huge hit to energy use, if it is even feasible for something like implementing webrtc because of communication costs with the native process.
- danielheath 4y agoHrm. If you had a specific WASM engine embedded in the app, you might be able to get it to precompile the bytecode (to avoid violating the runtime modification policy); that might be low-enough overhead (since you also control the communications layer & could make it cheaper).
- GoblinSlayer 4y agoVideo decoder in bytecode?
- black_puppydog 4y agoYou have to understand, they enforce those rules for security reasons. /s
- dagmx 4y agoI believe you’re able to use XPC Services to achieve that no? Edit: actually no, XPC Services are Mac only so wouldn’t help on iOS. WASI would be the closest thing to a secure runtime
- biggerChris 4y ago[dead]