2020-02-11 15:43:05 +01:00
|
|
|
typeattribute radio coredomain, mlstrustedsubject;
|
2017-03-23 22:27:32 +01:00
|
|
|
|
2016-12-10 05:14:31 +01:00
|
|
|
app_domain(radio)
|
2016-11-08 00:11:39 +01:00
|
|
|
|
|
|
|
read_runtime_log_tags(radio)
|
2018-06-25 16:36:51 +02:00
|
|
|
|
2020-03-04 09:20:35 +01:00
|
|
|
# Property service
|
2020-08-03 07:29:47 +02:00
|
|
|
set_prop(radio, radio_control_prop)
|
2020-03-04 09:20:35 +01:00
|
|
|
set_prop(radio, radio_prop)
|
|
|
|
set_prop(radio, net_radio_prop)
|
2020-05-14 14:47:43 +02:00
|
|
|
set_prop(radio, telephony_status_prop)
|
2021-04-30 06:52:42 +02:00
|
|
|
set_prop(radio, radio_cdma_ecm_prop)
|
2020-03-04 09:20:35 +01:00
|
|
|
|
|
|
|
# ctl interface
|
|
|
|
set_prop(radio, ctl_rildaemon_prop)
|
|
|
|
|
2018-06-25 16:36:51 +02:00
|
|
|
# Telephony code contains time / time zone detection logic so it reads the associated properties.
|
|
|
|
get_prop(radio, time_prop)
|
2019-08-01 23:05:05 +02:00
|
|
|
|
2019-12-06 22:18:21 +01:00
|
|
|
# allow telephony to access platform compat to log permission denials
|
|
|
|
allow radio platform_compat_service:service_manager find;
|
|
|
|
|
2019-08-01 23:05:05 +02:00
|
|
|
allow radio uce_service:service_manager find;
|
2019-10-15 22:13:56 +02:00
|
|
|
|
|
|
|
# Manage /data/misc/emergencynumberdb
|
|
|
|
allow radio emergency_data_file:dir r_dir_perms;
|
|
|
|
allow radio emergency_data_file:file r_file_perms;
|
2020-01-28 22:08:28 +01:00
|
|
|
|
|
|
|
# allow telephony to access related cache properties
|
|
|
|
set_prop(radio, binder_cache_telephony_server_prop);
|
2020-01-31 19:02:36 +01:00
|
|
|
|
|
|
|
# allow sending pulled atoms to statsd
|
|
|
|
binder_call(radio, statsd)
|
|
|
|
|
2024-03-27 09:18:41 +01:00
|
|
|
net_domain(radio)
|
|
|
|
bluetooth_domain(radio)
|
|
|
|
binder_service(radio)
|
|
|
|
|
|
|
|
# Talks to hal_telephony_server via the rild socket only for devices without full treble
|
|
|
|
not_full_treble(`unix_socket_connect(radio, rild, hal_telephony_server)')
|
|
|
|
|
|
|
|
# Data file accesses.
|
|
|
|
allow radio radio_data_file:dir create_dir_perms;
|
|
|
|
allow radio radio_data_file:notdevfile_class_set create_file_perms;
|
|
|
|
allow radio radio_core_data_file:dir r_dir_perms;
|
|
|
|
allow radio radio_core_data_file:file r_file_perms;
|
|
|
|
|
|
|
|
allow radio net_data_file:dir search;
|
|
|
|
allow radio net_data_file:file r_file_perms;
|
|
|
|
|
|
|
|
add_service(radio, radio_service)
|
|
|
|
allow radio audioserver_service:service_manager find;
|
|
|
|
allow radio cameraserver_service:service_manager find;
|
|
|
|
allow radio drmserver_service:service_manager find;
|
|
|
|
allow radio mediaserver_service:service_manager find;
|
|
|
|
allow radio nfc_service:service_manager find;
|
|
|
|
allow radio app_api_service:service_manager find;
|
|
|
|
allow radio system_api_service:service_manager find;
|
|
|
|
allow radio timedetector_service:service_manager find;
|
|
|
|
allow radio timezonedetector_service:service_manager find;
|
|
|
|
|
|
|
|
# Perform HwBinder IPC.
|
|
|
|
hwbinder_use(radio)
|
|
|
|
hal_client_domain(radio, hal_telephony)
|
|
|
|
|
|
|
|
# Used by TelephonyManager
|
|
|
|
allow radio proc_cmdline:file r_file_perms;
|
|
|
|
|
|
|
|
###
|
|
|
|
### Neverallow rules
|
|
|
|
###
|
|
|
|
|
|
|
|
neverallow { domain -radio -init }
|
|
|
|
binder_cache_telephony_server_prop:property_service set;
|