2013-09-11 17:37:46 +02:00
|
|
|
#
|
|
|
|
# Apps that run with the system UID, e.g. com.android.system.ui,
|
|
|
|
# com.android.settings. These are not as privileged as the system
|
|
|
|
# server.
|
|
|
|
#
|
|
|
|
type system_app, domain;
|
2014-01-11 10:31:03 +01:00
|
|
|
permissive_or_unconfined(system_app)
|
2013-09-11 17:37:46 +02:00
|
|
|
app_domain(system_app)
|
2014-02-24 16:48:03 +01:00
|
|
|
net_domain(system_app)
|
2014-01-11 08:05:25 +01:00
|
|
|
binder_service(system_app)
|
2013-10-23 19:12:55 +02:00
|
|
|
|
|
|
|
# Read and write system data files.
|
|
|
|
# May want to split into separate types.
|
|
|
|
allow system_app system_data_file:dir create_dir_perms;
|
|
|
|
allow system_app system_data_file:file create_file_perms;
|
|
|
|
|
|
|
|
# Read wallpaper file.
|
|
|
|
allow system_app wallpaper_file:file r_file_perms;
|
|
|
|
|
|
|
|
# Write to dalvikcache.
|
|
|
|
allow system_app dalvikcache_data_file:file { write setattr };
|
|
|
|
|
2013-11-01 18:45:03 +01:00
|
|
|
# Write to properties
|
2013-12-11 01:40:49 +01:00
|
|
|
unix_socket_connect(system_app, property, init)
|
|
|
|
allow system_app debug_prop:property_service set;
|
|
|
|
allow system_app radio_prop:property_service set;
|
2013-11-01 18:45:03 +01:00
|
|
|
allow system_app system_prop:property_service set;
|
2014-03-06 20:47:22 +01:00
|
|
|
allow system_app ctl_bugreport_prop:property_service set;
|
|
|
|
|
|
|
|
# Create /data/anr/traces.txt.
|
|
|
|
allow system_app anr_data_file:dir ra_dir_perms;
|
|
|
|
allow system_app anr_data_file:file create_file_perms;
|