blob: e834032d5e445d783970e483a84c8483c3763b75 [file] [log] [blame]
Nick Kralevich748fdef2013-07-12 16:33:29 -07001###
2### Apps signed with the platform key.
3###
4
5type platform_app, domain;
Nick Kralevich748fdef2013-07-12 16:33:29 -07006app_domain(platform_app)
Nick Kralevich748fdef2013-07-12 16:33:29 -07007# Access the network.
8net_domain(platform_app)
9# Access bluetooth.
10bluetooth_domain(platform_app)
Stephen Smalleyb0db7122014-03-06 16:03:48 -050011# Read from /data/local/tmp or /data/data/com.android.shell.
Stephen Smalley56370992013-10-23 13:12:55 -040012allow platform_app shell_data_file:dir search;
13allow platform_app shell_data_file:file { open getattr read };
Stephen Smalley56370992013-10-23 13:12:55 -040014# Populate /data/app/vmdl*.tmp, /data/app-private/vmdl*.tmp files
15# created by system server.
Jeff Sharkeyd3356822014-07-09 14:58:46 -070016allow platform_app { apk_tmp_file apk_private_tmp_file }:dir rw_dir_perms;
Stephen Smalley56370992013-10-23 13:12:55 -040017allow platform_app { apk_tmp_file apk_private_tmp_file }:file rw_file_perms;
18allow platform_app apk_private_data_file:dir search;
19# ASEC
20allow platform_app asec_apk_file:dir create_dir_perms;
21allow platform_app asec_apk_file:file create_file_perms;
Stephen Smalley56370992013-10-23 13:12:55 -040022
Stephen Smalley9ba844f2014-04-04 09:09:25 -040023# Access to /data/media.
24allow platform_app media_rw_data_file:dir create_dir_perms;
25allow platform_app media_rw_data_file:file create_file_perms;
26
27# Write to /cache.
28allow platform_app cache_file:dir create_dir_perms;
29allow platform_app cache_file:file create_file_perms;
Filipe Gonçalves51ca8cc2016-05-12 13:53:45 +010030
31# /persist -> board date lives there, so access is needed within SystemUI
32allow platform_app persist_file:dir r_dir_perms;
33allow platform_app persist_file:file r_file_perms;