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;
|
2015-01-13 14:56:54 +01:00
|
|
|
allow system_app system_app_data_file:{ file lnk_file } create_file_perms;
|
2013-10-23 19:12:55 +02:00
|
|
|
|
2014-10-13 13:10:08 +02:00
|
|
|
# Read /data/misc/keychain subdirectory.
|
|
|
|
allow system_app keychain_data_file:dir r_dir_perms;
|
|
|
|
allow system_app keychain_data_file:file r_file_perms;
|
|
|
|
|
2014-05-27 20:23:32 +02:00
|
|
|
# Read and write to other system-owned /data directories, such as
|
2014-10-13 13:10:08 +02:00
|
|
|
# /data/system/cache and /data/misc/user.
|
2014-05-27 20:23:32 +02:00
|
|
|
allow system_app system_data_file:dir create_dir_perms;
|
|
|
|
allow system_app system_data_file:file create_file_perms;
|
2014-10-13 13:10:08 +02:00
|
|
|
allow system_app misc_user_data_file:dir create_dir_perms;
|
|
|
|
allow system_app misc_user_data_file:file create_file_perms;
|
2014-05-27 20:23:32 +02:00
|
|
|
# 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;
|
|
|
|
|
2013-11-01 18:45:03 +01:00
|
|
|
# Write to properties
|
2015-05-05 03:22:45 +02:00
|
|
|
set_prop(system_app, debug_prop)
|
|
|
|
set_prop(system_app, system_prop)
|
|
|
|
set_prop(system_app, ctl_bugreport_prop)
|
|
|
|
set_prop(system_app, logd_prop)
|
|
|
|
set_prop(system_app, net_radio_prop)
|
|
|
|
set_prop(system_app, system_radio_prop)
|
2014-06-19 16:27:02 +02:00
|
|
|
auditallow system_app net_radio_prop:property_service set;
|
|
|
|
auditallow system_app system_radio_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
|
|
|
|
2014-12-11 16:33:49 +01:00
|
|
|
# Settings need to access app name and icon from asec
|
|
|
|
allow system_app asec_apk_file:file r_file_perms;
|
|
|
|
|
2015-05-05 00:06:26 +02:00
|
|
|
allow system_app servicemanager:service_manager list;
|
2015-01-07 19:24:28 +01:00
|
|
|
allow system_app mediaserver_service:service_manager find;
|
2014-12-12 01:01:27 +01:00
|
|
|
allow system_app nfc_service:service_manager find;
|
|
|
|
allow system_app radio_service:service_manager find;
|
|
|
|
allow system_app surfaceflinger_service:service_manager find;
|
2014-07-01 17:38:56 +02:00
|
|
|
allow system_app system_app_service:service_manager add;
|
2015-04-03 01:50:08 +02:00
|
|
|
allow system_app app_api_service:service_manager find;
|
|
|
|
allow system_app system_api_service:service_manager find;
|
2014-07-01 17:38:56 +02:00
|
|
|
|
2014-06-17 23:58:52 +02:00
|
|
|
allow system_app keystore:keystore_key {
|
2015-05-13 23:39:48 +02:00
|
|
|
get_state
|
2014-06-17 23:58:52 +02:00
|
|
|
get
|
|
|
|
insert
|
|
|
|
delete
|
|
|
|
exist
|
2015-05-13 23:39:48 +02:00
|
|
|
list
|
2014-06-17 23:58:52 +02:00
|
|
|
reset
|
|
|
|
password
|
|
|
|
lock
|
|
|
|
unlock
|
2015-05-13 23:39:48 +02:00
|
|
|
is_empty
|
2014-06-17 23:58:52 +02:00
|
|
|
sign
|
|
|
|
verify
|
|
|
|
grant
|
|
|
|
duplicate
|
|
|
|
clear_uid
|
2015-05-12 21:33:40 +02:00
|
|
|
user_changed
|
2014-06-17 23:58:52 +02:00
|
|
|
};
|
|
|
|
|
2014-05-10 02:47:19 +02:00
|
|
|
control_logd(system_app)
|