Inseob Kim | ff43be2 | 2021-06-07 16:56:56 +0900 | [diff] [blame^] | 1 | # phone subsystem |
| 2 | type radio, domain, mlstrustedsubject; |
| 3 | |
| 4 | net_domain(radio) |
| 5 | bluetooth_domain(radio) |
| 6 | binder_service(radio) |
| 7 | |
| 8 | # Talks to hal_telephony_server via the rild socket only for devices without full treble |
| 9 | not_full_treble(`unix_socket_connect(radio, rild, hal_telephony_server)') |
| 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 | allow radio radio_core_data_file:dir r_dir_perms; |
| 15 | allow radio radio_core_data_file:file r_file_perms; |
| 16 | |
| 17 | allow radio net_data_file:dir search; |
| 18 | allow radio net_data_file:file r_file_perms; |
| 19 | |
| 20 | add_service(radio, radio_service) |
| 21 | allow radio audioserver_service:service_manager find; |
| 22 | allow radio cameraserver_service:service_manager find; |
| 23 | allow radio drmserver_service:service_manager find; |
| 24 | allow radio mediaserver_service:service_manager find; |
| 25 | allow radio nfc_service:service_manager find; |
| 26 | allow radio app_api_service:service_manager find; |
| 27 | allow radio system_api_service:service_manager find; |
| 28 | allow radio timedetector_service:service_manager find; |
| 29 | allow radio timezonedetector_service:service_manager find; |
| 30 | |
| 31 | # Perform HwBinder IPC. |
| 32 | hwbinder_use(radio) |
| 33 | hal_client_domain(radio, hal_telephony) |
| 34 | |
| 35 | # Used by TelephonyManager |
| 36 | allow radio proc_cmdline:file r_file_perms; |