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;
|
|
|
|
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
|
|
|
|
2014-05-07 19:10:02 +02:00
|
|
|
# Read and write /data/data subdirectory.
|
|
|
|
allow system_app system_app_data_file:dir create_dir_perms;
|
|
|
|
allow system_app system_app_data_file:file create_file_perms;
|
2013-10-23 19:12:55 +02:00
|
|
|
|
2014-05-27 20:23:32 +02:00
|
|
|
# Read and write to other system-owned /data directories, such as
|
|
|
|
# /data/system/cache and /data/misc/keychain.
|
|
|
|
allow system_app system_data_file:dir create_dir_perms;
|
|
|
|
allow system_app system_data_file:file create_file_perms;
|
|
|
|
# Audit writes to these directories and files so we can identify
|
|
|
|
# and possibly move these directories into their own type in the future.
|
|
|
|
auditallow system_app system_data_file:dir { create setattr add_name remove_name rmdir rename };
|
|
|
|
auditallow system_app system_data_file:file { create setattr append write link unlink rename };
|
|
|
|
|
2013-10-23 19:12:55 +02:00
|
|
|
# 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;
|
2014-06-19 16:27:02 +02:00
|
|
|
allow system_app net_radio_prop:property_service set;
|
|
|
|
allow system_app system_radio_prop:property_service set;
|
|
|
|
auditallow system_app net_radio_prop:property_service set;
|
|
|
|
auditallow system_app system_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;
|
2014-06-12 21:47:22 +02:00
|
|
|
allow system_app logd_prop:property_service set;
|
2014-03-06 20:47:22 +01:00
|
|
|
|
|
|
|
# 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;
|
2014-05-10 02:47:19 +02:00
|
|
|
|
|
|
|
control_logd(system_app)
|