Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 1 | # phone subsystem |
Nick Kralevich | bfe4c8b | 2015-01-26 15:14:04 -0800 | [diff] [blame] | 2 | type radio, domain, mlstrustedsubject; |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 3 | app_domain(radio) |
| 4 | net_domain(radio) |
| 5 | bluetooth_domain(radio) |
Nick Kralevich | 2e7a301 | 2014-01-10 23:05:25 -0800 | [diff] [blame] | 6 | binder_service(radio) |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 7 | |
Stephen Smalley | 5637099 | 2013-10-23 13:12:55 -0400 | [diff] [blame] | 8 | # Talks to rild via the rild socket. |
| 9 | unix_socket_connect(radio, rild, rild) |
| 10 | |
| 11 | # Data file accesses. |
| 12 | allow radio radio_data_file:dir create_dir_perms; |
| 13 | allow radio radio_data_file:notdevfile_class_set create_file_perms; |
| 14 | |
| 15 | allow radio alarm_device:chr_file rw_file_perms; |
| 16 | |
Robert Greenwalt | 3bcdec8 | 2014-11-03 14:51:34 -0800 | [diff] [blame] | 17 | allow radio net_data_file:dir search; |
| 18 | allow radio net_data_file:file r_file_perms; |
| 19 | |
Stephen Smalley | 5637099 | 2013-10-23 13:12:55 -0400 | [diff] [blame] | 20 | # Property service |
William Roberts | 2f5a6a9 | 2015-05-04 18:22:45 -0700 | [diff] [blame] | 21 | set_prop(radio, radio_prop) |
| 22 | set_prop(radio, system_radio_prop) |
| 23 | set_prop(radio, net_radio_prop) |
Stephen Smalley | fee4915 | 2014-06-19 10:27:02 -0400 | [diff] [blame] | 24 | auditallow radio net_radio_prop:property_service set; |
| 25 | auditallow radio system_radio_prop:property_service set; |
Stephen Smalley | 5637099 | 2013-10-23 13:12:55 -0400 | [diff] [blame] | 26 | |
| 27 | # ctl interface |
William Roberts | 2f5a6a9 | 2015-05-04 18:22:45 -0700 | [diff] [blame] | 28 | set_prop(radio, ctl_rildaemon_prop) |
Riley Spahn | f90c41f | 2014-06-05 15:52:02 -0700 | [diff] [blame] | 29 | |
dcashman | bba1838 | 2015-01-30 17:17:04 -0800 | [diff] [blame] | 30 | allow radio drmserver_service:service_manager find; |
dcashman | cd82557 | 2014-12-11 16:01:27 -0800 | [diff] [blame] | 31 | allow radio mediaserver_service:service_manager find; |
| 32 | allow radio radio_service:service_manager { add find }; |
| 33 | allow radio surfaceflinger_service:service_manager find; |
dcashman | d12993f | 2015-04-02 16:50:08 -0700 | [diff] [blame] | 34 | allow radio app_api_service:service_manager find; |
| 35 | allow radio system_api_service:service_manager find; |