2013-07-13 01:33:29 +02:00
|
|
|
###
|
|
|
|
### Services with isolatedProcess=true in their manifest.
|
|
|
|
###
|
|
|
|
### This file defines the rules for isolated apps. An "isolated
|
|
|
|
### app" is an APP with UID between AID_ISOLATED_START (99000)
|
|
|
|
### and AID_ISOLATED_END (99999).
|
|
|
|
###
|
|
|
|
### isolated_app includes all the appdomain rules, plus the
|
|
|
|
### additional following rules:
|
|
|
|
###
|
|
|
|
|
|
|
|
type isolated_app, domain;
|
|
|
|
app_domain(isolated_app)
|
2014-06-28 00:19:04 +02:00
|
|
|
|
2014-11-21 18:28:42 +01:00
|
|
|
# Access already open app data files received over Binder or local socket IPC.
|
|
|
|
allow isolated_app app_data_file:file { read write getattr };
|
|
|
|
|
2014-12-17 00:45:26 +01:00
|
|
|
allow isolated_app activity_service:service_manager find;
|
|
|
|
allow isolated_app display_service:service_manager find;
|
|
|
|
|
2015-03-05 21:10:30 +01:00
|
|
|
#####
|
|
|
|
##### Neverallow
|
|
|
|
#####
|
|
|
|
|
|
|
|
# Isolated apps should not directly open app data files themselves.
|
|
|
|
neverallow isolated_app app_data_file:file open;
|
|
|
|
|
|
|
|
# b/17487348
|
|
|
|
# Isolated apps can only access two services,
|
|
|
|
# activity_service and display_service
|
|
|
|
neverallow isolated_app {
|
|
|
|
service_manager_type
|
2014-12-17 00:45:26 +01:00
|
|
|
-activity_service
|
|
|
|
-display_service
|
|
|
|
}:service_manager find;
|