blob: 5b9f8a0745bf863abae699c6ccec0aff947541be [file] [log] [blame]
Stephen Smalley8840fa72013-09-11 11:37:46 -04001#
2# Apps that run with the system UID, e.g. com.android.system.ui,
3# com.android.settings. These are not as privileged as the system
4# server.
5#
6type system_app, domain;
Stephen Smalley8840fa72013-09-11 11:37:46 -04007app_domain(system_app)
Stephen Smalley85708ec2014-02-24 10:48:03 -05008net_domain(system_app)
Nick Kralevich2e7a3012014-01-10 23:05:25 -08009binder_service(system_app)
Stephen Smalley56370992013-10-23 13:12:55 -040010
Stephen Smalley91a4f8d2014-05-07 13:10:02 -040011# Read and write /data/data subdirectory.
12allow system_app system_app_data_file:dir create_dir_perms;
13allow system_app system_app_data_file:file create_file_perms;
Stephen Smalley56370992013-10-23 13:12:55 -040014
Stephen Smalleyf1ea7072014-05-27 14:23:32 -040015# Read and write to other system-owned /data directories, such as
16# /data/system/cache and /data/misc/keychain.
17allow system_app system_data_file:dir create_dir_perms;
18allow system_app system_data_file:file create_file_perms;
19# Audit writes to these directories and files so we can identify
20# and possibly move these directories into their own type in the future.
21auditallow system_app system_data_file:dir { create setattr add_name remove_name rmdir rename };
22auditallow system_app system_data_file:file { create setattr append write link unlink rename };
23
Stephen Smalley56370992013-10-23 13:12:55 -040024# Read wallpaper file.
25allow system_app wallpaper_file:file r_file_perms;
26
27# Write to dalvikcache.
28allow system_app dalvikcache_data_file:file { write setattr };
29
Nick Kralevichdd1ec6d2013-11-01 10:45:03 -070030# Write to properties
Nick Kralevich3e780002013-12-10 16:40:49 -080031unix_socket_connect(system_app, property, init)
32allow system_app debug_prop:property_service set;
33allow system_app radio_prop:property_service set;
Nick Kralevichdd1ec6d2013-11-01 10:45:03 -070034allow system_app system_prop:property_service set;
Stephen Smalley1c0c0102014-03-06 14:47:22 -050035allow system_app ctl_bugreport_prop:property_service set;
Mark Salyzyn9e7bbf62014-06-12 12:47:22 -070036allow system_app logd_prop:property_service set;
Stephen Smalley1c0c0102014-03-06 14:47:22 -050037
38# Create /data/anr/traces.txt.
39allow system_app anr_data_file:dir ra_dir_perms;
40allow system_app anr_data_file:file create_file_perms;
Mark Salyzync52d7382014-05-09 17:47:19 -070041
42control_logd(system_app)