We have a device running Linux, and for this we need to run untrusted applications. We are trying to mitigate the following security issues -
- An incorrect application should not adversely affect the main data and binaries of the OS.
- An incorrect application should not adversely affect other application data and binaries.
- Invalid application should not consume excessive processor, memory or disk and cause problems with DoS / resource starvation in the main OS or other applications
In terms of an untrustworthy application, it should only read and write to its own directory and, possibly, an installed USB drive
We are thinking of using one of the following approaches -
Approach 1 - Use SELinux as a Sandbox
- Is it possible? I read a little SELinux and it looks a bit complicated in terms of setting up a policy file and providing it at runtime, etc. Can SELinux do this and limit an untrusted application to just read / write its own directory and also be able to set quota limits?
Approach 2 - Create a New Sandbox
? , ? , ? Android , , Android ...
,