Stephen Smalley | 8840fa7 | 2013-09-11 11:37:46 -0400 | [diff] [blame] | 1 | # |
| 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 | # |
| 6 | type system_app, domain; |
Nick Kralevich | 623975f | 2014-01-11 01:31:03 -0800 | [diff] [blame] | 7 | permissive_or_unconfined(system_app) |
Stephen Smalley | 8840fa7 | 2013-09-11 11:37:46 -0400 | [diff] [blame] | 8 | app_domain(system_app) |
Stephen Smalley | 85708ec | 2014-02-24 10:48:03 -0500 | [diff] [blame^] | 9 | net_domain(system_app) |
Nick Kralevich | 2e7a301 | 2014-01-10 23:05:25 -0800 | [diff] [blame] | 10 | binder_service(system_app) |
Stephen Smalley | 5637099 | 2013-10-23 13:12:55 -0400 | [diff] [blame] | 11 | |
| 12 | # Perform binder IPC to any app domain. |
| 13 | binder_call(system_app, appdomain) |
| 14 | |
| 15 | # Read and write system data files. |
| 16 | # May want to split into separate types. |
| 17 | allow system_app system_data_file:dir create_dir_perms; |
| 18 | allow system_app system_data_file:file create_file_perms; |
| 19 | |
| 20 | # Read wallpaper file. |
| 21 | allow system_app wallpaper_file:file r_file_perms; |
| 22 | |
| 23 | # Write to dalvikcache. |
| 24 | allow system_app dalvikcache_data_file:file { write setattr }; |
| 25 | |
| 26 | # Talk to keystore. |
| 27 | unix_socket_connect(system_app, keystore, keystore) |
| 28 | |
| 29 | # Read SELinux enforcing status. |
| 30 | selinux_getenforce(system_app) |
| 31 | |
| 32 | # Settings app reads sdcard for storage stats |
| 33 | allow system_app sdcard_type:dir r_dir_perms; |
| 34 | |
Nick Kralevich | dd1ec6d | 2013-11-01 10:45:03 -0700 | [diff] [blame] | 35 | # Write to properties |
Nick Kralevich | 3e78000 | 2013-12-10 16:40:49 -0800 | [diff] [blame] | 36 | unix_socket_connect(system_app, property, init) |
| 37 | allow system_app debug_prop:property_service set; |
| 38 | allow system_app radio_prop:property_service set; |
Nick Kralevich | dd1ec6d | 2013-11-01 10:45:03 -0700 | [diff] [blame] | 39 | allow system_app system_prop:property_service set; |